-
Notifications
You must be signed in to change notification settings - Fork 4
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 tab data along with icon (#611)
fix: update popup data along with icon - refactor(PopupState): add all popup data related to tab under `tab` - `tabUrl` -> `tab.url` - `isSiteMonetized` -> `tab.status === 'monetized'` - `hasAllSessionsInvalid` -> `tab.status === 'all_sessions_invalid'` - refactor(monetization): extract `getPopupTabData` to tabState service - refactor(tabEvents): use `getPopupTabData` instead of multiple params Paves way to show more useful messages with `tab.status` (e.g. new tab, internal extension pages, non-https pages)
- Loading branch information
1 parent
04945e9
commit 2325cb3
Showing
11 changed files
with
133 additions
and
90 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.