2
0
mirror of https://git.coolaj86.com/coolaj86/browser-authenticator.js synced 2025-03-14 12:20:46 +00:00

update google chart url

This commit is contained in:
AJ ONeal 2015-10-23 01:42:09 -07:00
parent c018cfc3d4
commit 50e047fae4

View File

@ -31,7 +31,7 @@ function generate(ke) {
+ '?secret=' + key.replace(/\s+/g, '').toUpperCase() + '?secret=' + key.replace(/\s+/g, '').toUpperCase()
; ;
// obviously don't use this in production, but it's not so bad for the demo // obviously don't use this in production, but it's not so bad for the demo
var src = 'https://www.google.com/chart?chs=166x166&chld=L|0&cht=qr&chl=' + encodeURIComponent(otpauth); var src = 'https://chart.googleapis.com/chart?chs=166x166&chld=L|0&cht=qr&chl=' + encodeURIComponent(otpauth);
$('.js-otpauth').innerHTML = otpauth; // safe to inject because I created it $('.js-otpauth').innerHTML = otpauth; // safe to inject because I created it
$('.js-key').innerHTML = key; // safe to inject because I created it $('.js-key').innerHTML = key; // safe to inject because I created it