Skip to content

Commit 4f0a1bc

Browse files
authored
fix(playground): use correct usage target or mode, when limited (#3367)
1 parent c0d0ba5 commit 4f0a1bc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/global/Playground/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -433,12 +433,8 @@ export default function Playground({
433433
* Load the stored mode and/or usage target, if present
434434
* from previously being toggled.
435435
*/
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-
}
436+
setIonicMode(getDefaultMode());
437+
setUsageTarget(getDefaultUsageTarget());
442438

443439
/**
444440
* If the iframes weren't already loaded, load them now.

0 commit comments

Comments
 (0)