Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Commit

Permalink
Update browser_view.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tomer-openfin authored Oct 17, 2019
1 parent 5b935f8 commit de2fa83
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/browser/api/browser_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ export async function attach(ofView: OfView, toIdentity: Identity) {
throw new Error(`Could not locate origin window ${previousTarget.uuid}/${previousTarget.name}`);
}

const oldwinMap = windowCloseListenerMap.get(oldWin);

if (oldWin) {
const oldWinMap = windowCloseListenerMap.get(oldWin);
if (previousTarget.name !== toIdentity.name) {
Expand Down Expand Up @@ -204,4 +202,4 @@ export function addEventListener({uuid, name}: Identity, type: string, listener:
of_events.removeListener(eventString, safeListener);
};
return unsubscribe;
}
}

0 comments on commit de2fa83

Please sign in to comment.