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