Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
Opens launchpad on reload of previously closed external tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Sobek authored and nchevobbe committed Feb 15, 2018
1 parent 12950c6 commit ec90a83
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/devtools-launchpad/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,15 @@ async function getTabs(actions) {
async function bootstrap(React, ReactDOM) {
const connTarget = getTargetFromQuery();
if (connTarget) {
const { tab, tabConnection } = await startDebugging(connTarget);

await updateConfig();
return { tab, connTarget, tabConnection };
const debuggedTarget = await startDebugging(connTarget);

if (debuggedTarget) {
const { tab, tabConnection } = debuggedTarget;
await updateConfig();
return { tab, connTarget, tabConnection };
} else {
console.info("Tab closed due to missing debugged target window.")
}
}

const { store, actions, LaunchpadApp } = await initApp();
Expand Down

0 comments on commit ec90a83

Please sign in to comment.