mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
[EC-598] chore: clean up console logs
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
import { MessageType } from "./messaging/message";
|
import { MessageType } from "./messaging/message";
|
||||||
import { Messenger } from "./messaging/messenger";
|
import { Messenger } from "./messaging/messenger";
|
||||||
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log("content-script loaded");
|
|
||||||
|
|
||||||
const s = document.createElement("script");
|
const s = document.createElement("script");
|
||||||
s.src = chrome.runtime.getURL("content/webauthn/page-script.js");
|
s.src = chrome.runtime.getURL("content/webauthn/page-script.js");
|
||||||
(document.head || document.documentElement).appendChild(s);
|
(document.head || document.documentElement).appendChild(s);
|
||||||
|
|||||||
@@ -3,9 +3,6 @@ import { WebauthnUtils } from "../../browser/webauthn-utils";
|
|||||||
import { MessageType } from "./messaging/message";
|
import { MessageType } from "./messaging/message";
|
||||||
import { Messenger } from "./messaging/messenger";
|
import { Messenger } from "./messaging/messenger";
|
||||||
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log("page-script loaded");
|
|
||||||
|
|
||||||
const browserCredentials = {
|
const browserCredentials = {
|
||||||
create: navigator.credentials.create.bind(navigator.credentials),
|
create: navigator.credentials.create.bind(navigator.credentials),
|
||||||
get: navigator.credentials.get.bind(navigator.credentials),
|
get: navigator.credentials.get.bind(navigator.credentials),
|
||||||
|
|||||||
@@ -50,8 +50,6 @@ export class Fido2Service implements Fido2ServiceAbstraction {
|
|||||||
credentialName: params.rp.name,
|
credentialName: params.rp.name,
|
||||||
userName: params.user.displayName,
|
userName: params.user.displayName,
|
||||||
});
|
});
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log("Fido2Service.createCredential", params);
|
|
||||||
|
|
||||||
const attestationFormat = STANDARD_ATTESTATION_FORMAT;
|
const attestationFormat = STANDARD_ATTESTATION_FORMAT;
|
||||||
const encoder = new TextEncoder();
|
const encoder = new TextEncoder();
|
||||||
@@ -109,13 +107,6 @@ export class Fido2Service implements Fido2ServiceAbstraction {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log("Fido2Service.createCredential => result", {
|
|
||||||
credentialId: Fido2Utils.bufferToString(credentialId.raw),
|
|
||||||
clientDataJSON: Fido2Utils.bufferToString(clientData),
|
|
||||||
attestationObject: Fido2Utils.bufferToString(attestationObject),
|
|
||||||
});
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
credentialId: Fido2Utils.bufferToString(credentialId.raw),
|
credentialId: Fido2Utils.bufferToString(credentialId.raw),
|
||||||
clientDataJSON: Fido2Utils.bufferToString(clientData),
|
clientDataJSON: Fido2Utils.bufferToString(clientData),
|
||||||
|
|||||||
Reference in New Issue
Block a user