Skip to content

Commit

Permalink
fix: frame tab redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
igorlogius committed Jun 24, 2024
1 parent f26a649 commit f3e1abe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ async function onCommand(command) {
}

async function onBeforeNavigate(details) {
if (details.frameId > 0) {
return;
}
if (typeof details.url !== "string") {
return;
}
Expand Down Expand Up @@ -418,6 +421,7 @@ async function handlePermissionChange() {
browser.tabs.onUpdated.addListener((tabId, changeInfo, tabInfo) => {
if (changeInfo.url) {
onBeforeNavigate({
frameId: 0,
tabId,
url: changeInfo.url,
});
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
"tabs"
],
"optional_permissions": ["bookmarks", "history"],
"version": "1.1.34"
"version": "1.1.35"
}

0 comments on commit f3e1abe

Please sign in to comment.