Browse Source

turn off scanner while cancel

CJYen 3 năm trước cách đây
mục cha
commit
e24cd4094d
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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");