We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16f91ab commit ec0bf01Copy full SHA for ec0bf01
core/scripts/testing/scripts.js
@@ -87,8 +87,8 @@ const DEFAULT_THEME = 'md';
87
* Values can be `light`, `dark`, `high-contrast`,
88
* or `high-contrast-dark`. Default to `light` for tests.
89
*/
90
- const paletteQuery = window.location.search.match(/palette=([a-z-]+)/);
91
- const paletteHash = window.location.hash.match(/palette=([a-z-]+)/);
+ const paletteQuery = window.location.search.match(/palette=([a-z]+)/);
+ const paletteHash = window.location.hash.match(/palette=([a-z]+)/);
92
const darkClass = document.body?.classList.contains('ion-palette-dark') ? 'dark' : null;
93
94
const paletteName = paletteQuery?.[1] || paletteHash?.[1] || darkClass || 'light';
0 commit comments