Skip to content

Commit 7aecc19

Browse files
Fix Firefox disconnection issue (#1647)
1 parent 2f1068f commit 7aecc19

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/heavy-hornets-switch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"apollo-client-devtools": patch
3+
---
4+
5+
Make the background script persistent in Firefox extension to address an issue where the devtools would disconnect periodically.

src/extension/firefox/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"page_action": {},
1212
"devtools_page": "devtools.html",
13-
"background": { "scripts": ["background.js"], "persistent": false },
13+
"background": { "scripts": ["background.js"], "persistent": true },
1414
"web_accessible_resources": ["panel.html", "devtools.html", "hook.js"],
1515
"content_scripts": [
1616
{ "matches": ["<all_urls>"], "js": ["tab.js"], "run_at": "document_start" }

0 commit comments

Comments
 (0)