Skip to content

Commit ec0bf01

Browse files
committed
chore(scripts): revert
1 parent 16f91ab commit ec0bf01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/scripts/testing/scripts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ const DEFAULT_THEME = 'md';
8787
* Values can be `light`, `dark`, `high-contrast`,
8888
* or `high-contrast-dark`. Default to `light` for tests.
8989
*/
90-
const paletteQuery = window.location.search.match(/palette=([a-z-]+)/);
91-
const paletteHash = window.location.hash.match(/palette=([a-z-]+)/);
90+
const paletteQuery = window.location.search.match(/palette=([a-z]+)/);
91+
const paletteHash = window.location.hash.match(/palette=([a-z]+)/);
9292
const darkClass = document.body?.classList.contains('ion-palette-dark') ? 'dark' : null;
9393

9494
const paletteName = paletteQuery?.[1] || paletteHash?.[1] || darkClass || 'light';

0 commit comments

Comments
 (0)