import { createInMemoryStorage } from "coral-framework/lib/storage" ; function coerceStorage ( type ) { let storage ; try { storage = window [ type ] ; } catch { console . debug ( `${ type } not available, use in-memory replacement` ) ; storage = createInMemoryStorage ( ) ; } return storage ; } export default coerceStorage ;