Skip to content

Commit

Permalink
fix(background): use chrome.scripting.ExecutionWorld.MAIN for firefox…
Browse files Browse the repository at this point in the history
… compatibility
  • Loading branch information
ttys0dev committed Oct 4, 2024
1 parent b714080 commit 7ff90ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function getAndStoreVueData(req, sender, sendResponse) {
.executeScript({
target: { tabId: sender.tab.id },
func: getVueDiv,
world: 'MAIN',
world: chrome.scripting.ExecutionWorld.MAIN,
})
.then((injectionResults) => sendResponse(injectionResults));
}
Expand Down Expand Up @@ -154,7 +154,7 @@ export function overwriteSubmitMethod(req, sender, sendResponse){
.executeScript({
target: { tabId: sender.tab.id },
func: _overwriteScript,
world: 'MAIN',
world: chrome.scripting.ExecutionWorld.MAIN,
})
.then((injectionResults) => sendResponse(injectionResults));
}

0 comments on commit 7ff90ae

Please sign in to comment.