MeechaPooch / Blocklive

MOVED TO OFFICIAL REPO: https://github.com/BlockliveScratch/Blocklive | Google Docs style live realtime collaboration (RTC) for scratch.
12 stars 24 forks source link

Get real extension ID #6

Closed rgantzos closed 1 year ago

rgantzos commented 1 year ago

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 the data-exId to the chrome.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 :/

MeechaPooch commented 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?

rgantzos commented 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?

Done! (I tested it too)