1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-04-19 08:51:03 +00:00
rolens/frontend/src/stores.js

12 lines
228 B
JavaScript
Raw Normal View History

2023-01-10 17:28:27 +01:00
import { writable } from 'svelte/store';
export const busy = writable(false);
busy.subscribe(isBusy => {
if (isBusy) {
document.body.classList.add('busy');
}
else {
document.body.classList.remove('busy');
}
});