Skip to content

Commit

Permalink
fix: avoid context invalidated error when extension updated
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Dec 27, 2023
1 parent 357c730 commit 399b094
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/browser-extension/src/devtools-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ chrome.storage.local.get([VITE_PLUGIN_DETECTED_STORAGE_KEY, VITE_PLUGIN_CLIENT_U
// for vite plugin
if (vitePluginDetected) {
function init(iframe: HTMLIFrameElement) {
if (chrome.runtime?.id === undefined)
return
injectScript(chrome.runtime.getURL('dist/user-app.js'), () => {
connect()

Expand Down

0 comments on commit 399b094

Please sign in to comment.