[Pale-Moon] No issue - Ensure window.location exists before checking against the browser URL

This commit is contained in:
FranklinDM 2022-12-04 12:15:24 +08:00 committed by roytam1
commit a39686b91b

View file

@ -428,7 +428,7 @@ var PlacesCommandHook = {
*/
updateBookmarkAllTabsCommand: function() {
// There's nothing to do in non-browser windows.
if (window.location.href != getBrowserURL()) {
if (!window.location || window.location.href != getBrowserURL()) {
return;
}