mirror of
https://github.com/ascribe/onion.git
synced 2025-01-08 20:55:59 +01:00
21 lines
450 B
JavaScript
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();
|
|
}
|
|
}; |