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 c0d0ba5 commit 4f0a1bcCopy full SHA for 4f0a1bc
src/components/global/Playground/index.tsx
@@ -433,12 +433,8 @@ export default function Playground({
433
* Load the stored mode and/or usage target, if present
434
* from previously being toggled.
435
*/
436
- if (isBrowser) {
437
- const storedMode = localStorage.getItem(MODE_STORAGE_KEY);
438
- if (storedMode) setIonicMode(storedMode);
439
- const storedUsageTarget = localStorage.getItem(USAGE_TARGET_STORAGE_KEY);
440
- if (storedUsageTarget) setUsageTarget(storedUsageTarget);
441
- }
+ setIonicMode(getDefaultMode());
+ setUsageTarget(getDefaultUsageTarget());
442
443
/**
444
* If the iframes weren't already loaded, load them now.
0 commit comments