fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.28k stars 117 forks source link

"Unexpected reserved word" in Chromium #87

Closed bussnet closed 7 years ago

bussnet commented 7 years ago

Hey guys.

I have Problems with the chrome extension on every page in Chromium 41.0.2250.0.

Got this on the console if I click the GhostEdit button and nothing happens.

 Uncaught SyntaxError: Unexpected reserved word
content.js:39 Got message: Object {action: "select-field", tabId: 2945}
content.js:150 GhostText: selectField()
extensions::uncaught_exception_handler:8 Error in event handler for runtime.onMessage: ReferenceError: GhostText is not defined
screenshot 2016-09-30 um 04 50 27
bussnet commented 7 years ago

worked after an upgrade to Chromium 53.0.2785.143, so maybe the extension can restrict to newer versions of chrome

fregante commented 7 years ago

Yeah, in v1.2.2 I switched to have our typescript files compiled to ES6 (classes). Classes have been available since Chrome 49, which is now 6 months old.

If you need to use version older than Chrome 49 you can use a previous version and compile using these instructions

fregante commented 7 years ago

I added the restriction in v1.2.4 but I think it doesn't solve your issue since the store discards older versions anyway

bussnet commented 7 years ago

extrem fast support - great ;) I installed the ghostText plugin from the chromestore some weeks ago, so it should be possible for others also.