mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Change prettier rules
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user