Skip to content

Commit 09fc0e9

Browse files
committed
chore: wip
1 parent 304723f commit 09fc0e9

File tree

1 file changed

+2
-5
lines changed
  • storage/framework/core/components/notification/packages

1 file changed

+2
-5
lines changed

storage/framework/core/components/notification/packages/Toaster.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,7 @@ watch(
190190
191191
if (newTheme === 'system') {
192192
// check if current preference is dark
193-
if (
194-
window.matchMedia
195-
&& window.matchMedia('(prefers-color-scheme: dark)').matches
196-
) {
193+
if (window?.matchMedia('(prefers-color-scheme: dark)').matches) {
197194
// it's currently dark
198195
actualTheme.value = 'dark'
199196
}
@@ -320,7 +317,7 @@ watchEffect((onInvalidate) => {
320317
:index="idx"
321318
:toast="toast"
322319
:duration="toastOptions?.duration ?? duration"
323-
:class="toastOptions?.class"
320+
:class="toastOptions?.class ?? ''"
324321
:description-class="toastOptions?.descriptionClass"
325322
:invert="invert"
326323
:visible-toasts="visibleToasts"

0 commit comments

Comments
 (0)