refactor: use if condition on layout
This commit is contained in:
@@ -61,7 +61,9 @@
|
||||
})
|
||||
|
||||
// Define page loading
|
||||
$: browser && document.body.classList.toggle('is-loading', $pageLoading)
|
||||
$: if (browser) {
|
||||
document.body.classList.toggle('is-loading', $pageLoading)
|
||||
}
|
||||
|
||||
|
||||
onMount(() => {
|
||||
|
||||
Reference in New Issue
Block a user