UNPKG

@scalar/api-client

Version:

the open source API testing client

17 lines (16 loc) 387 B
import { safeLocalStorage as e } from "@scalar/helpers/object/local-storage"; const r = "scalar.currentPath", o = { /** * We keep the currently active path so we can reload it if needed */ setCurrentPath: (t) => { t !== "/" && e().setItem(r, t); }, /** * Retrieve the last active path */ getLastPath: () => e().getItem(r) }; export { o as workspaceStorage };