Skip to content

Commit

Permalink
fix rfid when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
spookybear0 committed Dec 23, 2024
1 parent a81c272 commit 77e2c51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/rfid.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ async function checkSupport() {
// check if we already have permission
setInterval(checkPermission, 2000);
checkPermission();

console.log();
}

document.addEventListener("DOMContentLoaded", checkSupport);
if (document.getElementById("rfid_button") != null) {
document.addEventListener("DOMContentLoaded", checkSupport);
}

0 comments on commit 77e2c51

Please sign in to comment.