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 c4eef14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Fixes:
- Corrected typo in build script, ensuring correct favicon path for Firefox releases([379](https://github.com/freelawproject/recap/issues/379), [397](https://github.com/freelawproject/recap-chrome/pull/397))
- Refines the generateFileName method to accurately compute zip file names ([366](https://github.com/freelawproject/recap/issues/366), [399](https://github.com/freelawproject/recap-chrome/pull/399)).
- Improves the reliability of PACER case ID retrieval on attachment pages ([369](https://github.com/freelawproject/recap/issues/369), [400](https://github.com/freelawproject/recap-chrome/pull/400)).
- Use chrome.scripting.ExecutionWorld.MAIN for firefox compatibility ([404](https://github.com/freelawproject/recap-chrome/pull/404))


For developers:
Expand Down
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 c4eef14

Please sign in to comment.