webext-bridge icon indicating copy to clipboard operation
webext-bridge copied to clipboard

Error: This script should only be loaded in a browser extension. when importing bridge in the window context

Open celsobonutti opened this issue 4 years ago • 2 comments

Error: This script should only be loaded in a browser extension.

Version used: 5.0.0

Errors is thrown from webextension-polyfill when trying to import bridge in a window context.

Using Chromium 93.0.4577.63 and Mozilla Firefox version 92.0, both on ArchLinux

celsobonutti avatar Sep 30 '21 17:09 celsobonutti

Same. Something similar to zikaari/crx-bridge#7, don't know did he fix it.

pakholeung37 avatar Jan 28 '22 07:01 pakholeung37

Fixed in https://github.com/antfu/webext-bridge/pull/24

Please help us expedite the merge and release by reviewing the PR and testing the code locally on your system to make sure it's all good.

zikaari avatar Jun 29 '22 00:06 zikaari