mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-09-27 08:54:48 +00:00
15 lines
324 B
TypeScript
15 lines
324 B
TypeScript
"use strict";
|
|
|
|
// TODO: don't need this file anymore?
|
|
|
|
declare var localforage;
|
|
|
|
export function createNewPersistentStore(storeid:string, callback?) {
|
|
var store = localforage.createInstance({
|
|
name: "__" + storeid,
|
|
version: 2.0
|
|
});
|
|
if (callback != null) { callback(store); } // for tests only
|
|
return store;
|
|
}
|