File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
storage/framework/core/components/notification/packages Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -190,10 +190,7 @@ watch(
190
190
191
191
if (newTheme === ' system' ) {
192
192
// 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 ) {
197
194
// it's currently dark
198
195
actualTheme .value = ' dark'
199
196
}
@@ -320,7 +317,7 @@ watchEffect((onInvalidate) => {
320
317
:index =" idx"
321
318
:toast =" toast"
322
319
:duration =" toastOptions?.duration ?? duration"
323
- :class =" toastOptions?.class"
320
+ :class =" toastOptions?.class ?? '' "
324
321
:description-class =" toastOptions?.descriptionClass"
325
322
:invert =" invert"
326
323
:visible-toasts =" visibleToasts"
You can’t perform that action at this time.
0 commit comments