Skip to content

Commit

Permalink
Fix missing domWindow variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fofajardo committed Jan 28, 2023
1 parent caf5253 commit 15888ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,14 @@ this.Swarth.pageHandler = {
}

if (aRequest) {
let domWindow = aWebProgress.DOMWindow;
// Don't bother updating if the current page is blocked.
if (Swarth.scm.isForceBlocked(domWindow)) {
return;
}
Swarth.scm.update(
{
window: aWebProgress.DOMWindow,
window: domWindow,
method: Swarth.currentMethod,
isTopLevel: isTopLevel
},
Expand Down

0 comments on commit 15888ad

Please sign in to comment.