Change prettier rules

This commit is contained in:
ErickSkrauch
2020-05-24 02:08:24 +03:00
parent 73f0c37a6a
commit f85b9d8d35
382 changed files with 24137 additions and 26046 deletions

View File

@@ -2,26 +2,26 @@
let stack = 1;
export function show(): void {
if (++stack >= 0) {
const loader = document.getElementById('loader');
if (++stack >= 0) {
const loader = document.getElementById('loader');
if (!loader) {
throw new Error('Can not find loader element');
if (!loader) {
throw new Error('Can not find loader element');
}
loader.classList.add('is-active');
}
loader.classList.add('is-active');
}
}
export function hide(): void {
if (--stack <= 0) {
stack = 0;
const loader = document.getElementById('loader');
if (--stack <= 0) {
stack = 0;
const loader = document.getElementById('loader');
if (!loader) {
throw new Error('Can not find loader element');
if (!loader) {
throw new Error('Can not find loader element');
}
loader.classList.remove('is-active', 'is-first-launch');
}
loader.classList.remove('is-active', 'is-first-launch');
}
}