Skip to content

Commit

Permalink
refactor: don't trigger theme in maintenance mode (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored Jul 26, 2023
1 parent d800e0e commit e988952
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions resources/views/scripts/dark-theme-script.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@
bubbles: true,
}));
if (window.Livewire) {
Livewire.emit('themeChanged', _theme);
}
@unless (app()->isDownForMaintenance())
if (window.Livewire) {
Livewire.emit('themeChanged', _theme);
}
@endunless
}
toggleTheme();
Expand Down

0 comments on commit e988952

Please sign in to comment.