[Basilisk] Front-end fixes

Partial backport of MoonchildProductions/Pale-Moon commit 84c814f55c
This commit is contained in:
Basilisk-Dev 2023-07-11 18:11:00 -04:00 committed by roytam1
commit 748cac6e80

View file

@ -642,8 +642,9 @@ var PlacesCommandHook = {
updateBookmarkAllTabsCommand:
function PCH_updateBookmarkAllTabsCommand() {
// There's nothing to do in non-browser windows.
if (window.location.href != getBrowserURL())
if (!window.location || window.location.href != getBrowserURL()) {
return;
}
// Disable "Bookmark All Tabs" if there are less than two
// "unique current pages".