az0 / linkgopher

Firefox/Google Chrome add-on: Extracts all links from web page, sorts them, removes duplicates, and displays them in a new tab for inspection or copy and paste into other systems.
GNU General Public License v3.0
257 stars 56 forks source link

keyboard shortcuts broke extension on Google Chrome: Cannot use import statement outside a module #47

Open az0 opened 2 years ago

az0 commented 2 years ago

Started after merging https://github.com/az0/linkgopher/pull/43 and fixing https://github.com/az0/linkgopher/issues/46

Git revision 4fe360f1276f026148b4337d602dcbd92f016427 Version 2.4 Google Chrome 92.0.4515.159 (Official Build) (64-bit)

Uncaught SyntaxError: Cannot use import statement outside a module
Context
popup/popup.html
Stack Trace
popup/js/popup.js:3 (anonymous function)
jtagcat commented 2 years ago

image

Don't have an idea at the moment on how this could be solved. Had the error on FF before (used to call popup.js directly from the manifest). I'm not very great at JS.

jtagcat commented 2 years ago

I can spend hours on it Friday+, rn gonna go sleep.