1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-17 19:29:44 +00:00
8bitworkshop/src/ide/store.ts

15 lines
324 B
TypeScript
Raw Normal View History

2018-06-26 06:56:36 +00:00
"use strict";
// TODO: don't need this file anymore?
2018-06-26 06:56:36 +00:00
declare var localforage;
2020-06-29 16:06:19 +00:00
export function createNewPersistentStore(storeid:string, callback?) {
2018-06-29 23:44:04 +00:00
var store = localforage.createInstance({
2019-05-08 23:15:26 +00:00
name: "__" + storeid,
version: 2.0
});
2020-06-29 16:06:19 +00:00
if (callback != null) { callback(store); } // for tests only
return store;
}