vlcn-io / js

Components to build apps in JavaScript atop cr-sqlite
MIT License
51 stars 6 forks source link

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

Open ben-xD opened 10 months ago

ben-xD commented 10 months ago

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 commented 10 months ago

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