Skip to content

Commit 8dc807a

Browse files
committed
fix(background): use chrome.scripting.ExecutionWorld.MAIN for firefox compatibility
1 parent 95c8aee commit 8dc807a

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
@@ -15,6 +15,7 @@ Fixes:
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)).
1717
- Fix setDefaultOptions in updateToolbarButton([403](https://github.com/freelawproject/recap-chrome/pull/403))
18+
- Use chrome.scripting.ExecutionWorld.MAIN for firefox compatibility ([404](https://github.com/freelawproject/recap-chrome/pull/404))
1819

1920

2021
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)