Skip to content

Commit

Permalink
fix: Don't open the main window all the time, only if the user is not…
Browse files Browse the repository at this point in the history
… authenticated.
  • Loading branch information
itssimple committed Mar 16, 2022
1 parent 78bcbc5 commit dbcaae0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,11 @@ if (firstLaunch) {

window.eventEmitter.addEventListener("manifests-loaded", async function () {
closeLoadingWindow();
localStorage.removeItem("mainWindow_opened");
openWindow(null, null);

if (!(await destinyApiClient.isAuthenticated())) {
localStorage.removeItem("mainWindow_opened");
openWindow(null, null);
}
});

function checkExtensionUpdate() {
Expand Down

0 comments on commit dbcaae0

Please sign in to comment.