From 589403e8bb55712048775ab4ce4b2078190308b6 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 30 Apr 2018 22:13:05 -0600 Subject: [PATCH] fix https://github.com/Daplie/browser-authenticator/issues/6 --- demo/demo.js | 1 + index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/demo.js b/demo/demo.js index 58566c6..2fddf8d 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -50,6 +50,7 @@ function generate(ke) { var src = 'https://chart.googleapis.com/chart?chs=166x166&chld=L|0&cht=qr&chl=' + encodeURIComponent(otpauth); $('.js-otpauth').innerHTML = otpauth; // only safe to inject because I created it + $('.js-otpauth').href = otpauth; $('img.js-qrcode').src = src; $('.js-otp-iframe').src = 'demo/phone.html?otpuri=' + encodeURIComponent(otpauth); diff --git a/index.html b/index.html index ddb85f5..4a75711 100644 --- a/index.html +++ b/index.html @@ -73,7 +73,7 @@
-

otpauth://totp/company:user?secret=xxxx&issuer=company

+ otpauth://totp/company:user?secret=xxxx&issuer=company