Update interface.html

pull/1396/head
Andrew Gregory 2022-02-06 17:06:49 +08:00 committed by GitHub
parent bded3b9171
commit 565aea574c
1 changed files with 2 additions and 1 deletions

View File

@ -397,6 +397,7 @@ function handleTokenQr(res) {
}
}
function cancelTokenQr() {
scanning = false;
editToken(parseInt(document.forms['edittoken'].elements['tokenid'].value));
}
class proto3decoder {
@ -467,6 +468,7 @@ function handleImportQr(res) {
}
}
function cancelImportQr() {
scanning = false;
document.body.className = 'select';
}
/* Original QR-code reader: https://www.sitepoint.com/create-qr-code-reader-mobile-website/ */
@ -474,7 +476,6 @@ qrcode.callback = res => {
if (res) {
scanCallback(res);
if (scanning) {
scanning = false;
scanBack();
}
}