diff --git a/src/components/global/Playground/index.tsx b/src/components/global/Playground/index.tsx index 1ef1dba4489..9bb55c430fc 100644 --- a/src/components/global/Playground/index.tsx +++ b/src/components/global/Playground/index.tsx @@ -433,12 +433,8 @@ export default function Playground({ * Load the stored mode and/or usage target, if present * from previously being toggled. */ - if (isBrowser) { - const storedMode = localStorage.getItem(MODE_STORAGE_KEY); - if (storedMode) setIonicMode(storedMode); - const storedUsageTarget = localStorage.getItem(USAGE_TARGET_STORAGE_KEY); - if (storedUsageTarget) setUsageTarget(storedUsageTarget); - } + setIonicMode(getDefaultMode()); + setUsageTarget(getDefaultUsageTarget()); /** * If the iframes weren't already loaded, load them now.