Skip to content

Commit

Permalink
do not disable autologin by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Häublein committed Mar 27, 2021
1 parent 2dd613b commit bd2c2b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/background/PopupConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ interface methods {
getPasswordByAccountIndex: (index: number) => Promise<string>;
setAction: (action: Action) => void;
openManager: () => void;
openManagerForLogin: () => void;
logoutPage: () => void;
}
class PopupConnector {
Expand Down Expand Up @@ -75,7 +74,7 @@ class PopupConnector {
this.meth.openManager();
break;
case "showManagerForLogin":
this.meth.openManagerForLogin();
this.meth.openManager();
break;
case "logout":
this.meth.logoutPage();
Expand Down
2 changes: 1 addition & 1 deletion src/background/TabConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TabConnector {
this.openListener();
}

openManager(autoLogin: boolean = false) {
openManager(autoLogin: boolean = true) {
let url = this.meth.getBackendHost();
if (url !== "") {
if (!autoLogin) {
Expand Down
6 changes: 3 additions & 3 deletions src/background/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class DummyMethods {
}
logoutPage(): void {
this.action = { action: "logout", data: {} };
this.openManager();
this.openManagerForLogout();
}
loadSettings(): void {
console.log("reloading settings");
Expand All @@ -101,8 +101,8 @@ class DummyMethods {
openManager(): void {
this.tabs.openManager();
}
openManagerForLogin(): void {
this.tabs.openManager(true);
openManagerForLogout(): void {
this.tabs.openManager(false);
}
}

Expand Down

0 comments on commit bd2c2b9

Please sign in to comment.