adambullmer / vue-cli-plugin-browser-extension

Browser extension development plugin for vue-cli 3.0
GNU Lesser General Public License v3.0
426 stars 76 forks source link

problem with standalone app in firefox browser #76

Open xerosanyam opened 4 years ago

xerosanyam commented 4 years ago

App fails to load in firefox, works okay in chrome.

In firefox console, getting chrome is not defined image

xerosanyam commented 4 years ago

after removing polyfills.. getting browser is not defined image

adambullmer commented 4 years ago

maybe there's a scaffolding issue. The idea is that you should always have a polyfill (it's supposed to be a no-op in firefox) and always code around using the browser syntax, and not chrome. Which file is this error originating from?

kasslermedmos commented 3 years ago

I have the same problem with the standalone. Works in Chrome but not in Safari or Firefox. Seems to be this line " module.exports = wrapAPIs(chrome);" in the browser-polyfill.js.

Skärmavbild 2021-02-21 kl  13 00 29