Skip to content

Commit

Permalink
Enable activate_extension
Browse files Browse the repository at this point in the history
  • Loading branch information
wtetsu committed Aug 17, 2023
1 parent 5c3979f commit 2986987
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,10 @@ chrome.commands.onCommand.addListener((command) => {
case "scroll_down":
sendToActiveTab((tabId) => chrome.tabs.sendMessage(tabId, { message: { type: "scroll_down" } }));
break;
// Workaround for Vivaldi, but causes CI error (see #84)
// case "activate_extension":
// chrome.scripting.executeScript({
// target: { tabId: tab.id },
// files: ["main.js"],
// });
// break;
case "activate_extension":
// Workaround for Vivaldi (see #84)
sendToActiveTab((tabId) => chrome.scripting.executeScript({ target: { tabId }, files: ["main.js"] }));
break;
}
});

Expand Down

0 comments on commit 2986987

Please sign in to comment.