Skip to content

Unable to use worker in a WebExtension #17

Description

@jobisoft

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions