diff --git a/icons.html b/icons.html index 6a57ecee..c4a19f9e 100644 --- a/icons.html +++ b/icons.html @@ -6,7 +6,7 @@ brands/solid/facebook
brands/solid/github
brands/solid/lbry
brands/solid/linkedin
brands/solid/reddit
brands/solid/slack
brands/solid/telegram
brands/solid/twitter
-brands/solid/youtube
brands/telegram
brands/tiktok
brands/twitter
brands/weibo
brands/windows
brands/x
brands/youtube-shorts-outline
brands/youtube-shorts
brands/youtube
calendar-without-dots
calendar
cards
categories
category
chain
chart-pie
check-mark-bold
check-mark-box
check-mark-small
check-mark
circle/arrow-down
circle/check-mark-big
circle/check-mark-pencil
circle/check-mark
circle/clock-big
circle/cross-big
circle/cross
circle/exclamation-mark-big
circle/exclamation-mark
circle/forward-big
circle/forward
circle/hand-big
circle/hand
circle/info
circle/lock
circle/min
circle/open-plus-inside
circle/open-plus-outside
circle/pause-big
circle/pause
circle/play-big
circle/play
circle/plus
circle/question-mark-big
circle/question-mark
+brands/solid/youtube
brands/telegram
brands/tiktok
brands/twitter
brands/weibo
brands/windows
brands/x
brands/youtube-shorts-outline
brands/youtube-shorts
brands/youtube
calendar-without-dots
calendar
cards
categories
category
chain
chart-pie
check-mark-bold
check-mark-box
check-mark-small
check-mark
circle/arrow-down
circle/check-mark-big
circle/check-mark-pencil
circle/check-mark
circle/clock-big
circle/cross-big
circle/cross
circle/exclamation-mark-big
circle/exclamation-mark
circle/forward-big
circle/forward
circle/hand-big
circle/hand
circle/info
circle/lock
circle/min
circle/minus-small
circle/open-plus-inside
circle/open-plus-outside
circle/pause-big
circle/pause
circle/play-big
circle/play
circle/plus
circle/question-mark-big
circle/question-mark
circle/search
circle/shopping-cart-pointer
circle/spinner
circle/stop-big
circle/stop
circle/update
clock-ban
clock-pencil
clock
cloud-arrow-up
cloud
code
coins-stack
connection
controller
copy-key
copy
core
credit-card
cross-small
cross
dash
developer-tools
dollar-sign
double-check-mark
drag
ellipsis-vertical
enter
diff --git a/resources/views/scripts/dark-theme-script.blade.php b/resources/views/scripts/dark-theme-script.blade.php index 137d1bcd..a92481e9 100644 --- a/resources/views/scripts/dark-theme-script.blade.php +++ b/resources/views/scripts/dark-theme-script.blade.php @@ -14,7 +14,10 @@ * Set the given theme ('light' or 'dark'). */ document.addEventListener('setThemeMode', (e) => { - localStorage.theme = e.detail.theme; + // The latest version of Livewire sends the details as an array. + // Handling both cases for backward compatibility. + theme = Array.isArray(e.detail) ? e.detail[0].theme : e.detail.theme; + localStorage.theme = theme; toggleTheme(); });