From f131ea171b2990bb13bae998e1861043f22588d5 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 18 Dec 2018 17:00:30 -0500 Subject: [PATCH] install and use duo_web_sdk w/ npm --- jslib | 2 +- package-lock.json | 4 ++++ package.json | 1 + src/2fa/2fa.ts | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index 3b22df15e8..aa17849329 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 3b22df15e8cb2f14c2b4dfe996af9bbb721902d0 +Subproject commit aa1784932945bfd1115f366cf5dafc6b481c19a3 diff --git a/package-lock.json b/package-lock.json index 83e8ba670a..5acc0ba901 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3058,6 +3058,10 @@ "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": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", diff --git a/package.json b/package.json index df16285c25..12dd0d08b1 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,7 @@ "angulartics2": "6.3.0", "big-integer": "1.6.36", "core-js": "2.5.7", + "duo_web_sdk": "git+https://github.com/duosecurity/duo_web_sdk.git", "font-awesome": "4.7.0", "lunr": "2.3.3", "mousetrap": "1.6.2", diff --git a/src/2fa/2fa.ts b/src/2fa/2fa.ts index 968261ae66..47ddc3c8d2 100644 --- a/src/2fa/2fa.ts +++ b/src/2fa/2fa.ts @@ -1,4 +1,4 @@ -import * as DuoWebSDK from 'jslib/misc/duo'; +import * as DuoWebSDK from 'duo_web_sdk'; document.addEventListener('DOMContentLoaded', () => { const isSafari = (typeof safari !== 'undefined') && navigator.userAgent.indexOf(' Safari/') !== -1 &&