sqlite-worker
sqlite-worker copied to clipboard
Unable to use worker in a WebExtension
Foremost, thanks for this awesome project. We created an example Thunderbird WebExtension, to show how it can be used: https://github.com/thunderbird/webext-examples/tree/master/manifest_v2/indexdb.sql
While creating the example, I could not load the module as an actual worker, but had to bootstrap the SQLiteWorker module into the main thread: https://github.com/thunderbird/webext-examples/blob/master/manifest_v2/indexdb.sql/background.js#L11-L22
I think using this as a real worker will be better performance-wise. Do you have any idea of what I missed or did wrong?
I think you’re better off with sql.js: https://github.com/WebReflection/sql.js
I will give it a try and report back!