mirror of
https://github.com/bitwarden/browser
synced 2024-12-24 17:11:55 +01:00
Fix linting in connectors (#1293)
This commit is contained in:
parent
57031e7752
commit
40c37143e0
@ -13,7 +13,7 @@ document.addEventListener('DOMContentLoaded', event => {
|
||||
const hostParam = getQsParam('host');
|
||||
const requestParam = getQsParam('request');
|
||||
|
||||
var hostUrl = new URL('https://' + hostParam);
|
||||
const hostUrl = new URL('https://' + hostParam);
|
||||
if (!hostUrl.hostname.endsWith('.duosecurity.com') && !hostUrl.hostname.endsWith('.duofederal.com')) {
|
||||
return;
|
||||
}
|
||||
|
@ -25,9 +25,9 @@ function initiateBrowserSso(code: string, state: string) {
|
||||
window.postMessage({ command: 'authResult', code: code, state: state }, '*');
|
||||
const handOffMessage = ('; ' + document.cookie).split('; ssoHandOffMessage=').pop().split(';').shift();
|
||||
document.cookie = 'ssoHandOffMessage=;SameSite=strict;max-age=0';
|
||||
let content = document.getElementById('content');
|
||||
const content = document.getElementById('content');
|
||||
content.innerHTML = '';
|
||||
let p = document.createElement('p');
|
||||
const p = document.createElement('p');
|
||||
p.innerText = handOffMessage;
|
||||
content.appendChild(p);
|
||||
}
|
||||
|
@ -4,6 +4,8 @@ import { buildDataString, parseWebauthnJson } from './common-webauthn';
|
||||
// tslint:disable-next-line
|
||||
require('./webauthn.scss');
|
||||
|
||||
const mobileCallbackUri = 'bitwarden://webauthn-callback';
|
||||
|
||||
let parsed = false;
|
||||
let webauthnJson: any;
|
||||
let headerText: string = null;
|
||||
@ -12,7 +14,6 @@ let btnReturnText: string = null;
|
||||
let parentUrl: string = null;
|
||||
let parentOrigin: string = null;
|
||||
let mobileResponse = false;
|
||||
let mobileCallbackUri = 'bitwarden://webauthn-callback';
|
||||
let stopWebAuthn = false;
|
||||
let sentSuccess = false;
|
||||
let obj: any = null;
|
||||
@ -82,7 +83,7 @@ function parseParametersV2() {
|
||||
btnText: string;
|
||||
btnReturnText: string;
|
||||
callbackUri?: string;
|
||||
mobile?: boolean
|
||||
mobile?: boolean
|
||||
} = null;
|
||||
try {
|
||||
dataObj = JSON.parse(b64Decode(getQsParam('data')));
|
||||
|
Loading…
Reference in New Issue
Block a user