0a09511d4c3f
L6/QUA-007: remove stale @ts-ignore directives in Lock.tsx — chrome types resolve cleanly
- time
- 2026-05-16 05:15 UTC · 5 months ago
- machine
- koh2
- parent
- 705a2fcd8d9a
↓ peach-browser-0a09511d.tar.gzatlas at this save
files changed1 file
src/popup/views/Lock.tsx+1 −2src/popup/views/Lock.tsx+1 −2
@@ -1028,7 +1028,7 @@10281028 10291029 onMount(() => {10301030 void startPairing();1031- // @ts-ignore — chrome runtime1031+ // chrome global is absent in the Capacitor WebView — guard at runtime.10321032 if (typeof chrome !== "undefined" && chrome.runtime?.onMessage) {10331033 chrome.runtime.onMessage.addListener(handleRuntimeMsg);10341034 }@@ -1036,7 +1036,6 @@10361036 10371037 onCleanup(() => {10381038 clearExpire();1039- // @ts-ignore10401039 if (typeof chrome !== "undefined" && chrome.runtime?.onMessage) {10411040 chrome.runtime.onMessage.removeListener(handleRuntimeMsg);10421041 }