Skip to content

Commit

Permalink
fix(playground): use correct usage target or mode, when limited (#3367)
Browse files Browse the repository at this point in the history
  • Loading branch information
mapsandapps authored Jan 10, 2024
1 parent c0d0ba5 commit 4f0a1bc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/global/Playground/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

1 comment on commit 4f0a1bc

@vercel
Copy link

@vercel vercel bot commented on 4f0a1bc Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ionic-docs – ./

ionic-docs-git-main-ionic1.vercel.app
ionic-docs-ionic1.vercel.app
ionic-docs-gqykycf8t.vercel.app

Please sign in to comment.