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

Opens launchpad on reload of previously closed external tab #847

Merged
merged 1 commit into from
Feb 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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