Skip to content

Commit b582f7b

Browse files
committed
Bug Fixes
1 parent 1978406 commit b582f7b

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

background.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,4 @@ function sendToContentScript(tabId, message) {
2727
if (isValidAction(message.action)) {
2828
sendToContentScript(sender.tab.id, message);
2929
}
30-
});
31-
32-
function isValidAction(action) {
33-
return (
34-
action === 'startUnsubscribe' ||
35-
action === 'stopUnsubscribe' ||
36-
action === 'startDislike' ||
37-
action === 'stopDislike' ||
38-
action === 'startNewAction' ||
39-
action === 'stopNewAction'
40-
);
41-
}
42-
43-
function sendToContentScript(tabId, message) {
44-
chrome.scripting.executeScript({
45-
target: { tabId: tabId },
46-
function: (message) => {
47-
chrome.runtime.sendMessage(message);
48-
},
49-
args: [message],
50-
});
51-
}
30+
});

0 commit comments

Comments
 (0)