Skip to content

Commit 66ae23a

Browse files
author
dada513
committed
update tab directly instead of ext message
1 parent 43c48f7 commit 66ae23a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/ui/alert.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,8 @@ class SMRAlert extends LitElement {
173173
type: "add-to-ignore",
174174
data: this.siteInfo,
175175
});
176-
chrome.runtime.sendMessage({
177-
type: "tab-update",
178-
data: this.siteInfo.ext_redirFrom,
176+
chrome.tabs.update({
177+
url: this.siteInfo.ext_redirFrom,
179178
});
180179
}
181180
}

0 commit comments

Comments
 (0)