Skip to content

Commit

Permalink
Fix back and forward buttons (fixes #499)
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed May 25, 2024
1 parent b9bf72d commit 92132a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions native/userchrome/profile/chrome/pwa/content/browser.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,8 @@ class PwaBrowser {

onCommand (event) {
const window = event.target.ownerGlobal;
window.BrowserBack(event);
if (window.BrowserCommands) window.BrowserCommands.back(event);
else window.BrowserBack(event);
}
});

Expand All @@ -1766,7 +1767,8 @@ class PwaBrowser {

onCommand (event) {
const window = event.target.ownerGlobal;
window.BrowserForward(event);
if (window.BrowserCommands) window.BrowserCommands.forward(event);
else window.BrowserForward(event);
}
});
}
Expand Down

0 comments on commit 92132a7

Please sign in to comment.