瀏覽代碼

turn off scanner while cancel

CJYen 3 年之前
父節點
當前提交
e24cd4094d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      ArkCard-web/collect.html

+ 1 - 0
ArkCard-web/collect.html

@@ -397,6 +397,7 @@ $(".qrcode").click(function () {
 
 $(".close").click(function () {
     $('#qr-reader').css('display','none'); 
+    html5QrCode.stop();
 });
 
 const html5QrCode = new Html5Qrcode("qr-reader");