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