Skip to content

Commit

Permalink
fix(add-panel-globals-before-injecting-backend) (#208)
Browse files Browse the repository at this point in the history
Fixes issue where panel crashes due to 'devtools' being undefined
  • Loading branch information
HugoDF authored Apr 19, 2021
1 parent 4adbcde commit e1651c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shell-chrome/src/devtools/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import { init, handleMessage } from './app'

function connect() {
injectScript(chrome.runtime.getURL('./backend.js'), () => {
init()
init()

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

0 comments on commit e1651c6

Please sign in to comment.