Skip to content

Commit f549965

Browse files
committed
fixed the injectscript function error by changing function to func
1 parent ba474cd commit f549965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension/background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
291291

292292
switch (action) {
293293
case 'attemptReconnect': {
294-
const success = portSuccessfullyConnected;
294+
const success = 'portSuccessfullyConnected';
295295
sendResponse({ success });
296296
break;
297297
}
@@ -337,7 +337,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
337337

338338
chrome.scripting.executeScript({
339339
target: { tabId },
340-
function: injectScript,
340+
func: injectScript,
341341
args: [chrome.runtime.getURL('bundles/backend.bundle.js'), tabId],
342342
});
343343
break;

0 commit comments

Comments
 (0)