mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
Removed dev logging
This commit is contained in:
@@ -75,14 +75,14 @@ export default class RuntimeBackground {
|
|||||||
|
|
||||||
if (request.type == "AUTH_RESULT") {
|
if (request.type == "AUTH_RESULT") {
|
||||||
try {
|
try {
|
||||||
this.logIn(request.code, request.codeVerifier);
|
this.initiateLogIn(request.code, request.codeVerifier);
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async logIn(code: string, codeVerifier: string) {
|
async initiateLogIn(code: string, codeVerifier: string) {
|
||||||
this.loggingIn = true;
|
this.loggingIn = true;
|
||||||
try {
|
try {
|
||||||
this.formPromise = this.authService.logInSso(code, codeVerifier, this.redirectUri);
|
this.formPromise = this.authService.logInSso(code, codeVerifier, this.redirectUri);
|
||||||
@@ -98,7 +98,7 @@ export default class RuntimeBackground {
|
|||||||
sidebarWindows[0].location.reload();
|
sidebarWindows[0].location.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch(error) { console.log(error); }
|
} catch(error) { }
|
||||||
|
|
||||||
this.loggingIn = false;
|
this.loggingIn = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ window.addEventListener("message", function(event) {
|
|||||||
if (event.source != window)
|
if (event.source != window)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
console.log(event.source);
|
|
||||||
|
|
||||||
if (event.data.type && (event.data.type == "AUTH_RESULT")) {
|
if (event.data.type && (event.data.type == "AUTH_RESULT")) {
|
||||||
chrome.runtime.sendMessage({
|
chrome.runtime.sendMessage({
|
||||||
type: event.data.type,
|
type: event.data.type,
|
||||||
|
|||||||
Reference in New Issue
Block a user