1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-28 12:45:45 +01:00

install and use duo_web_sdk w/ npm

This commit is contained in:
Kyle Spearrin 2018-12-18 17:00:30 -05:00
parent 2722d78fbd
commit f131ea171b
4 changed files with 7 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 3b22df15e8cb2f14c2b4dfe996af9bbb721902d0 Subproject commit aa1784932945bfd1115f366cf5dafc6b481c19a3

4
package-lock.json generated
View File

@ -3058,6 +3058,10 @@
"domelementtype": "1" "domelementtype": "1"
} }
}, },
"duo_web_sdk": {
"version": "git+https://github.com/duosecurity/duo_web_sdk.git#410a9186cc34663c4913b17d6528067cd3331f1d",
"from": "git+https://github.com/duosecurity/duo_web_sdk.git"
},
"duplexer2": { "duplexer2": {
"version": "0.0.2", "version": "0.0.2",
"resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz",

View File

@ -90,6 +90,7 @@
"angulartics2": "6.3.0", "angulartics2": "6.3.0",
"big-integer": "1.6.36", "big-integer": "1.6.36",
"core-js": "2.5.7", "core-js": "2.5.7",
"duo_web_sdk": "git+https://github.com/duosecurity/duo_web_sdk.git",
"font-awesome": "4.7.0", "font-awesome": "4.7.0",
"lunr": "2.3.3", "lunr": "2.3.3",
"mousetrap": "1.6.2", "mousetrap": "1.6.2",

View File

@ -1,4 +1,4 @@
import * as DuoWebSDK from 'jslib/misc/duo'; import * as DuoWebSDK from 'duo_web_sdk';
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 &&