Skip to content

Commit d197f9c

Browse files
committed
fix(background): use chrome.scripting.ExecutionWorld.MAIN for firefox compatibility
1 parent b714080 commit d197f9c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
strategy:
15+
fail-fast: false
1516
matrix:
1617
node-version: [14.x, 16.x, 18.x]
1718
steps:

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Fixes:
1414
- 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))
1515
- 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)).
1616
- 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)).
17+
- Use chrome.scripting.ExecutionWorld.MAIN for firefox compatibility ([404](https://github.com/freelawproject/recap-chrome/pull/404))
1718

1819

1920
For developers:

src/utils/background.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function getAndStoreVueData(req, sender, sendResponse) {
123123
.executeScript({
124124
target: { tabId: sender.tab.id },
125125
func: getVueDiv,
126-
world: 'MAIN',
126+
world: chrome.scripting.ExecutionWorld.MAIN,
127127
})
128128
.then((injectionResults) => sendResponse(injectionResults));
129129
}
@@ -154,7 +154,7 @@ export function overwriteSubmitMethod(req, sender, sendResponse){
154154
.executeScript({
155155
target: { tabId: sender.tab.id },
156156
func: _overwriteScript,
157-
world: 'MAIN',
157+
world: chrome.scripting.ExecutionWorld.MAIN,
158158
})
159159
.then((injectionResults) => sendResponse(injectionResults));
160160
}

0 commit comments

Comments
 (0)