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 95c8aee commit 8dc807a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
Expand Down
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Fixes:
- 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)).
- Fix setDefaultOptions in updateToolbarButton([403](https://github.com/freelawproject/recap-chrome/pull/403))
- 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 8dc807a

Please sign in to comment.