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