Run linter.
This commit is contained in:
parent
18f034acd3
commit
75a927ed62
|
@ -12,6 +12,7 @@ globals:
|
||||||
pageState: writable
|
pageState: writable
|
||||||
pageContent: writable
|
pageContent: writable
|
||||||
realPages: writable
|
realPages: writable
|
||||||
|
module: writable
|
||||||
|
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|
|
@ -179,7 +179,7 @@ function onLoad() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 5000);
|
}, 5000);
|
||||||
};
|
}
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
i18next.init({
|
i18next.init({
|
||||||
|
@ -200,7 +200,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).then(function (t) {
|
}).then(function (_) {
|
||||||
onLoad();
|
onLoad();
|
||||||
});
|
});
|
||||||
}, false);
|
}, false);
|
||||||
|
|
|
@ -51,7 +51,7 @@ export class SetLanguagePage extends Page {
|
||||||
let formData = new FormData(setLanguageForm);
|
let formData = new FormData(setLanguageForm);
|
||||||
let language = formData.get("language");
|
let language = formData.get("language");
|
||||||
localStorage.setItem('language', language);
|
localStorage.setItem('language', language);
|
||||||
i18next.changeLanguage(language).then((t) => {
|
i18next.changeLanguage(language).then((_) => {
|
||||||
changePage("HOME", false);
|
changePage("HOME", false);
|
||||||
location.reload();
|
location.reload();
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,6 +7,7 @@ import { MarginInline } from "../elements/MarginInline.js";
|
||||||
import i18next from 'i18next';
|
import i18next from 'i18next';
|
||||||
import QrScanner from 'qr-scanner';
|
import QrScanner from 'qr-scanner';
|
||||||
|
|
||||||
|
/* eslint-disable import/no-unresolved */
|
||||||
import qrScannerWorkerSource from '!!raw-loader!qr-scanner/qr-scanner-worker.min.js';
|
import qrScannerWorkerSource from '!!raw-loader!qr-scanner/qr-scanner-worker.min.js';
|
||||||
QrScanner.WORKER_PATH = URL.createObjectURL(new Blob([qrScannerWorkerSource]));
|
QrScanner.WORKER_PATH = URL.createObjectURL(new Blob([qrScannerWorkerSource]));
|
||||||
|
|
||||||
|
@ -31,8 +32,8 @@ export class UnsealPage extends Page {
|
||||||
this.stream.getTracks().forEach(function (track) {
|
this.stream.getTracks().forEach(function (track) {
|
||||||
track.stop();
|
track.stop();
|
||||||
});
|
});
|
||||||
} catch {
|
} catch (_) {
|
||||||
|
console.log("");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue