UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

2 lines (1 loc) 316 B
import{KIOSK_STORAGE_KEY as o}from"./constants";export async function saveKiosk(e){localStorage.setItem(o,JSON.stringify(e))}export async function removeKiosk(){localStorage.removeItem(o)}export function getSavedKiosk(){const e=localStorage.getItem(o);if(e)try{return JSON.parse(e)}catch(t){console.warn(t);return}}