Skip to content

Commit ec6fd1c

Browse files
Update core/scripts/testing/scripts.js
Co-authored-by: Brandy Smith <[email protected]>
1 parent cd48467 commit ec6fd1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/scripts/testing/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
let paletteName = paletteQuery?.[1] || paletteHash?.[1] || highContrastDarkClass || darkClass || highContrastClass || 'light';
6868

6969
if (!validPalettes.includes(paletteName)) {
70+
console.warn(`Invalid palette name: '${paletteName}'. Falling back to 'light' palette.`);
7071
paletteName = 'light';
71-
console.warn(`Invalid palette name: ${paletteName}. Falling back to 'light' palette.`);
7272
}
7373

7474
if (paletteName !== 'light') {

0 commit comments

Comments
 (0)