Commit d5a12c31 by Takatoshi Miura

1.4.0_miura_#44150 バックグラウンド遷移時にRFID読み込みを終了する修正

parent b3b37e64
......@@ -3058,6 +3058,13 @@ CHK.scanClose = function() {
$(".scan-area").addClass("d-none");
}
document.addEventListener('visibilitychange', () => {
// バックグラウンド遷移時
if (document.visibilityState === 'hidden') {
CHK.scanClose();
}
});
CHK.scanResult = function(scannedCode, scanType) {
if (scannedCode == null || !(scannedCode.length)) {
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment