diff --git a/apps/browser-extension-wallet/manifest.json b/apps/browser-extension-wallet/manifest.json index c700f6908..17eee6e43 100644 --- a/apps/browser-extension-wallet/manifest.json +++ b/apps/browser-extension-wallet/manifest.json @@ -10,8 +10,7 @@ "128": "icon128.png" }, "background": { - "service_worker": "./js/background.js", - "scripts": ["./js/background.js"] + "service_worker": "./js/background.js" }, "action": { "default_popup": "popup.html" diff --git a/apps/browser-extension-wallet/webpack-utils.js b/apps/browser-extension-wallet/webpack-utils.js index 4e92891b4..a6ad40eec 100644 --- a/apps/browser-extension-wallet/webpack-utils.js +++ b/apps/browser-extension-wallet/webpack-utils.js @@ -68,7 +68,10 @@ const transformManifest = (content, mode) => { } }; } + // Firefox: Reading text is only available for extensions with the Web Extension clipboardRead permission manifest.permissions = [...manifest.permissions, 'clipboardRead']; + // The background script in Firefox is a hidden DOM page + manifest.background = { scripts: ['./js/background.js'] }; } else if (process.env.BROWSER === 'chrome') { manifest.key = process.env.LACE_EXTENSION_KEY; }