Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reliance on DOM, crsqlite causes error: Uncaught ReferenceError: document is not defined #28

Open
ben-xD opened this issue Sep 23, 2023 · 1 comment

Comments

@ben-xD
Copy link

ben-xD commented Sep 23, 2023

I'd like to run cr-sqlite in a browser extension, and therefore won't have DOM. Unfortunately, crsqlite runs document.currentScript.src (seem in crsqlite.mjs).

Could cr-sqlite avoid reliance on document, or perhaps provide a separate file for browser extensions?

Thanks! :)

@tantaman
Copy link
Contributor

Seems to be an emscripten thin. I'll see if there's some environment flags that can be set during compilation.

@tantaman tantaman transferred this issue from vlcn-io/cr-sqlite Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants