Show grant access dialog every time we initialize

This commit is contained in:
Vivianne Langdon 2022-02-27 00:04:25 -08:00
parent e71a5e3bdf
commit 9f67a74340

View file

@ -655,6 +655,8 @@ let BookWyrm = new (class {
} }
function initBarcodes(cameraId = null) { function initBarcodes(cameraId = null) {
toggleStatus('grant-access');
if (!cameraId) { if (!cameraId) {
cameraId = sessionStorage.getItem('preferredCam'); cameraId = sessionStorage.getItem('preferredCam');
} else { } else {
@ -777,7 +779,6 @@ let BookWyrm = new (class {
event.target.addEventListener('close', cleanup, { once: true }); event.target.addEventListener('close', cleanup, { once: true });
toggleStatus('grant-access');
initBarcodes(); initBarcodes();
} }
})(); })();