-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update popup data along with icon
refactor: add all popup data related to tab under tabKey - tabUrl -> tab.url - isSiteMonetized -> tab.walletAddresses.length > 0 - hasAllSessionsInvalid -> tab.cannotMonetizeReason === 'all_sessions_invalid' refactor(monetization): extract `getPopupTabData` to tabState service refactor(tabEvents): use getPopupTabData instead of multiple params Paves way for showing more useful messages with tab.cannotMonetizeReason (e.g. new tab, internal extension pages, non-https pages) Allows showing in popup which wallet addresses are being paid (if needed)
- Loading branch information
1 parent
ac4c96c
commit 8c6287b
Showing
12 changed files
with
134 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// cSpell:ignore newtab, webui, startpage | ||
|
||
export const INTERNAL_PAGE_URL_PROTOCOLS = new Set([ | ||
'chrome:', | ||
'about:', | ||
'edge:', | ||
]); | ||
|
||
export const NEW_TAB_PAGES = [ | ||
'about:blank', | ||
'chrome://newtab', | ||
'about:newtab', | ||
'edge://newtab', | ||
'chrome://vivaldi-webui/startpage', | ||
]; |
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
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
Oops, something went wrong.