1
0
Fork 0

Run linter.

This commit is contained in:
Kitteh 2021-04-24 16:26:31 +01:00
parent 18f034acd3
commit 75a927ed62
4 changed files with 7 additions and 5 deletions

View file

@ -12,6 +12,7 @@ globals:
pageState: writable
pageContent: writable
realPages: writable
module: writable
rules:

View file

@ -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);

View file

@ -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();
});

View file

@ -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("");
}
}