-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manifest v3 #219
Manifest v3 #219
Conversation
KillariDev
commented
Mar 3, 2023
•
edited
Loading
edited
- Adds support for Manifest v3 while still maintaining support for V2
Ethers fix is required to get v3 working: ethers-io/ethers.js#3856 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats a lot of globalThis
@@ -185,7 +185,7 @@ export function App() { | |||
|
|||
function openAddressBook() { | |||
sendPopupMessageToBackgroundPage( { method: 'popup_openAddressBook' } ) | |||
return window.close() // close extension popup, chrome closes it by default, but firefox does not | |||
return globalThis.close() // close extension popup, chrome closes it by default, but firefox does not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs an issue made?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's a bug. The browsers just work differently
"web_accessible_resources": [ | ||
{ | ||
"resources": ["vendor/*", "js/*", "inpage/*"], | ||
"matches": ["<all_urls>"] // not sure if this is right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this is valid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be much better if we did activeTab
instead, but that requires users to click the extension icon to activate it. This permission requires that we get "read and write access to all websites you visit".