mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-25 16:59:17 +01:00
load DuoWebSDK as a module
This commit is contained in:
parent
822b24be76
commit
2033e46683
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit cd3c2ddff1abd66c6318d981a389685dc82cfc0e
|
||||
Subproject commit 4bd9a9fc1121cd2f9bbe3b414c6239040b4fe880
|
@ -1,5 +1,4 @@
|
||||
// tslint:disable-next-line
|
||||
require('../scripts/duo.js');
|
||||
import * as DuoWebSDK from 'jslib/misc/duo';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const isSafari = (typeof safari !== 'undefined') && navigator.userAgent.indexOf(' Safari/') !== -1 &&
|
||||
@ -19,7 +18,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
}
|
||||
|
||||
if (msg.data.type === 'duo') {
|
||||
(window as any).Duo.init({
|
||||
DuoWebSDK.init({
|
||||
iframe: undefined,
|
||||
host: msg.data.host,
|
||||
sig_request: msg.data.signature,
|
||||
submit_callback: (theForm: Document) => {
|
||||
|
@ -4,8 +4,6 @@ import 'web-animations-js';
|
||||
|
||||
// tslint:disable-next-line
|
||||
require('./scss/popup.scss');
|
||||
// tslint:disable-next-line
|
||||
require('../scripts/duo.js');
|
||||
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user