packages/app-frontend/src/index.js
/**
 * Create the main devtools app. Expects to be called with a shell interface
 * which implements a connect method.
 *
 * @param {Object} shell
 *        - connect(bridge => {})
 *        - onReload(reloadFn)
 */
Create the main devtools app. Expects to be called with a shell interface
which implements a connect method.


Create the main devtools app . Expects to be called with a shell interface which implements a connect method .
async function initDevTools (shell) {
  await initStorage()
  const app = createApp()
  app.$mount('#app')
  connectApp(app, shell)
  shell.onReload(() => {
    setAppConnected(false)
    bridge.removeAllListeners()
    connectApp(app, shell)
  })
}
async function initDevTools ( shell ) { await initStorage ( ) const app = createApp ( ) app . $mount ( '#app' ) connectApp ( app , shell ) shell . onReload ( ( ) => { setAppConnected ( false ) bridge . removeAllListeners ( ) connectApp ( app , shell ) } ) }
Create the main devtools app.
Create the main devtools app .