-
Notifications
You must be signed in to change notification settings - Fork 7
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
Is it possible to use in chrome extension? #106
Comments
@lionelhorn it seems to be possible to run it in service worker, regarding jlongster/absurd-sql#54 . It will take a look, hope this week 🙂 |
@quolpr Thanks for the help. I dug into it a bit more.
So I tried to make it work with a chrome extension using manifest v2. For all options, wasm files are properly fetched and loaded. Using wa-sqlite directly, it seems to work.https://github.com/lionelhorn/sqlite-browser-extension-mv2/blob/main/src/sqlite-backends/wasqlite-direct.ts Using absurdsql backend with kikko
The indexdb appears in application storage but I can't run a dummy migration. Using wa-sqlite backend from kikkoI get the same error message as previously using in extension with manifest v3.
|
Hello,
I'm trying to make kikko work in a browser extension but without luck so far.
Do you have any pointers or idea if it's compatible? How to make it work?
What I tried so far is to initalize the db from a ServiceWorker / background page.
https://github.com/lionelhorn/kikko-in-browser-extension
With wa-sqlite
https://github.com/lionelhorn/kikko-in-browser-extension/blob/7163528b2152e70d94cacb5ef6ea5c014f63b82b/src/background/index.ts#L29-L38
With wa-sqlite, the first error was
I managed to apparently fix that one by adding it to the extension manifest.
https://github.com/lionelhorn/kikko-in-browser-extension/blob/6894cc784d93c7b53bc1b3892d8871dad7b84d5f/manifest.config.ts#L34-L40
but then get the following
With absurd sql backend.
The text was updated successfully, but these errors were encountered: