Skip to content

Commit e988952

Browse files
authored
refactor: don't trigger theme in maintenance mode (#589)
1 parent d800e0e commit e988952

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

resources/views/scripts/dark-theme-script.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@
4646
bubbles: true,
4747
}));
4848
49-
if (window.Livewire) {
50-
Livewire.emit('themeChanged', _theme);
51-
}
49+
@unless (app()->isDownForMaintenance())
50+
if (window.Livewire) {
51+
Livewire.emit('themeChanged', _theme);
52+
}
53+
@endunless
5254
}
5355
5456
toggleTheme();

0 commit comments

Comments
 (0)