Skip to content

Commit e1651c6

Browse files
authored
fix(add-panel-globals-before-injecting-backend) (#208)
Fixes issue where panel crashes due to 'devtools' being undefined
1 parent 4adbcde commit e1651c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/shell-chrome/src/devtools

packages/shell-chrome/src/devtools/panel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import { init, handleMessage } from './app'
33

44
function connect() {
5-
injectScript(chrome.runtime.getURL('./backend.js'), () => {
6-
init()
5+
init()
76

7+
injectScript(chrome.runtime.getURL('./backend.js'), () => {
88
const port = chrome.runtime.connect({
99
name: '' + chrome.devtools.inspectedWindow.tabId,
1010
})

0 commit comments

Comments
 (0)