-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Make extension using Manifest V3 compatible with Firefox (#1388)
* updated README * changed Manifest.json to scripts * split manifest.json into manifest_chrome.json and manifest_firefox.json * updated build script * updated regular build scripts * fixed CI build * updated zip scripts * updated .gitignore * updated scripts * updated docs * updated CI * revert extension-base's README.md
- Loading branch information
Showing
8 changed files
with
130 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"author": "polkadot.{js}", | ||
"description": "Manage your Polkadot accounts outside of dapps. Injects the accounts and allows signing transactions for a specific account.", | ||
"homepage_url": "https://github.com/polkadot-js/extension", | ||
"name": "polkadot{.js} extension", | ||
"short_name": "polkadot{.js}", | ||
"manifest_version": 3, | ||
"permissions": ["storage", "tabs", "alarms"], | ||
"background": { | ||
"service_worker": "background.js", | ||
"type": "module" | ||
}, | ||
"action": { | ||
"default_title": "polkadot{.js}", | ||
"default_popup": "index.html" | ||
}, | ||
"content_scripts": [{ | ||
"js": ["content.js"], | ||
"matches": ["http://*/*", "https://*/*"], | ||
"run_at": "document_start" | ||
}], | ||
"icons": { | ||
"16": "images/icon-16.png", | ||
"32": "images/icon-32.png", | ||
"48": "images/icon-48.png", | ||
"64": "images/icon-64.png", | ||
"128": "images/icon-128.png" | ||
}, | ||
"web_accessible_resources": [ | ||
{ | ||
"resources": [ | ||
"page.js" | ||
], | ||
"matches": [ | ||
"*://*/*" | ||
] | ||
} | ||
], | ||
"content_security_policy": { | ||
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"author": "polkadot.{js}", | ||
"description": "Manage your Polkadot accounts outside of dapps. Injects the accounts and allows signing transactions for a specific account.", | ||
"homepage_url": "https://github.com/polkadot-js/extension", | ||
"name": "polkadot{.js} extension", | ||
"short_name": "polkadot{.js}", | ||
"manifest_version": 3, | ||
"permissions": ["storage", "tabs", "alarms"], | ||
"background": { | ||
"scripts": ["background.js"], | ||
"type": "module" | ||
}, | ||
"action": { | ||
"default_title": "polkadot{.js}", | ||
"default_popup": "index.html" | ||
}, | ||
"content_scripts": [{ | ||
"js": ["content.js"], | ||
"matches": ["http://*/*", "https://*/*"], | ||
"run_at": "document_start" | ||
}], | ||
"icons": { | ||
"16": "images/icon-16.png", | ||
"32": "images/icon-32.png", | ||
"48": "images/icon-48.png", | ||
"64": "images/icon-64.png", | ||
"128": "images/icon-128.png" | ||
}, | ||
"web_accessible_resources": [ | ||
{ | ||
"resources": [ | ||
"page.js" | ||
], | ||
"matches": [ | ||
"*://*/*" | ||
] | ||
} | ||
], | ||
"content_security_policy": { | ||
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'" | ||
} | ||
} |