Closed rgantzos closed 1 year ago
This is awesome! I tried to do this early on and couldnt figure it out. Before I merge, could you add this patch for mystuff.js too?
This is awesome! I tried to do this early on and couldnt figure it out. Before I merge, could you add this patch for mystuff.js too?
Done! (I tested it too)
Before, the extension ID was set in the
/scripts/editor.js
. That made it difficult to use local versions of Blocklive, as well as could be dangerous to mistakes.Now, the
/injectors/editor.js
file sets thedata-exId
to thechrome.runtime.id
so that the/editor/editor.js
file can easily get the accurate extension ID no matter what.I also just randomly formatted the code :/