23dc656843ef
fix detached popup URL — resolve via manifest action.default_popup instead of hardcoded popup.html (v3.6.71)
- time
- 2026-05-21 01:43 UTC · 5 months ago
- machine
- koh2
- parent
- 785cca9b28d7
↓ peach-browser-23dc6568.tar.gzatlas at this save
files changed4 files
manifest.firefox.json+1 −1manifest.json+1 −1package.json+1 −1src/popup/views/CodexRestoreView.tsx+7 −1manifest.firefox.json+1 −1
@@ -2,7 +2,7 @@22 "_comment_audio_capture": "Firefox does not honor the Chrome 'audioCapture' optional_permission — getUserMedia in WebExtensions is gated solely by the runtime permission prompt. Microphone access for chirp pairing works from the popup under the existing '<all_urls>' host permission; no manifest entry is required or accepted here.",33 "manifest_version": 3,44 "name": "Peach",5- "version": "3.6.70",5+ "version": "3.6.71",66 "description": "Zero-knowledge password manager",77 "browser_specific_settings": {88 "gecko": {manifest.json+1 −1
@@ -1,7 +1,7 @@11 {22 "manifest_version": 3,33 "name": "Peach",4- "version": "3.6.70",4+ "version": "3.6.71",55 "description": "Zero-knowledge password manager",66 "action": {77 "default_popup": "src/popup/index.html",package.json+1 −1
@@ -1,6 +1,6 @@11 {22 "name": "peach",3- "version": "3.6.70",3+ "version": "3.6.71",44 "description": "Zero-knowledge password manager",55 "type": "module",66 "scripts": {src/popup/views/CodexRestoreView.tsx+7 −1
@@ -183,8 +183,14 @@183183 return;184184 }185185 try {186+ // Use the same HTML entrypoint the action popup uses. Reading it187+ // from chrome.runtime.getManifest().action.default_popup keeps the188+ // path correct across builds (Chrome vs Firefox manifest variants)189+ // without hard-coding "src/popup/index.html".190+ const popupHtml =191+ chrome.runtime.getManifest().action?.default_popup ?? "src/popup/index.html";186192 await chrome.windows.create({187- url: chrome.runtime.getURL("popup.html?codex=pdf"),193+ url: chrome.runtime.getURL(`${popupHtml}?codex=pdf`),188194 type: "popup",189195 width: 460,190196 height: 720,