1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-08 20:55:59 +01:00
onion/js/stores/session_persistent_store.js
2015-10-29 17:15:26 +01:00

21 lines
450 B
JavaScript

'use strict';
import AscribeStorage from '../models/ascribe_storage';
export default class SessionPersistentStore extends AscribeStorage {
constructor(name) {
super('sessionStorage', name);
}
setItem(key, value) {
this[key] = value;
super.setItem(key, value);
}
}
SessionPersistentStore.config = {
getState() {
return new AscribeStorage('sessionStorage', this.displayName).toObject();
}
};