You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to import into the browser by doing <script src="https://unpkg.com/browse/@rwh/keystrokes@latest/dist/keystrokes.umd.cjs"> I get a 302 redirect and then a 0B file.
If I use the version on jsDelivr via <script src="https://cdn.jsdelivr.net/npm/@rwh/[email protected]/dist/keystrokes.min.js"></script> I get a SyntaxError: Unexpected token 'export' (at keystrokes.min.js:7:11663)
If I use the non-minified version on jsDelivr via <script src="https://cdn.jsdelivr.net/npm/@rwh/[email protected]/dist/keystrokes.js"></script> I get the error SyntaxError: Unexpected token 'export' (at keystrokes.js:486:1)
I would love to use this library as it looks nicer to use than Hotkeys which requires me to setscopes, etc... But so far I've had zero luck getting it to load in the browser.
The text was updated successfully, but these errors were encountered:
I'm writing a browser extension and trying out Keystrokes.
Browser extensions have all kind of restrictions.
I can't load external scripts from a CDN, scripts must be local.
I can't use modules.
So I ran into a similar problem.
When trying to import into the browser by doing
<script src="https://unpkg.com/browse/@rwh/keystrokes@latest/dist/keystrokes.umd.cjs">
I get a 302 redirect and then a 0B file.If I use the version on jsDelivr via
<script src="https://cdn.jsdelivr.net/npm/@rwh/[email protected]/dist/keystrokes.min.js"></script>
I get aSyntaxError: Unexpected token 'export' (at keystrokes.min.js:7:11663)
If I use the non-minified version on jsDelivr via
<script src="https://cdn.jsdelivr.net/npm/@rwh/[email protected]/dist/keystrokes.js"></script>
I get the errorSyntaxError: Unexpected token 'export' (at keystrokes.js:486:1)
I would love to use this library as it looks nicer to use than Hotkeys which requires me to setscopes, etc... But so far I've had zero luck getting it to load in the browser.
The text was updated successfully, but these errors were encountered: