|
|
@@ -101,9 +101,10 @@ export default class Crowi {
|
|
|
];
|
|
|
|
|
|
keys.forEach(key => {
|
|
|
- if (this.localStorage[key]) {
|
|
|
+ const keyContent = this.localStorage[key];
|
|
|
+ if (keyContent) {
|
|
|
try {
|
|
|
- this[key] = JSON.parse(this.localStorage[key]);
|
|
|
+ this[key] = JSON.parse(keyContent);
|
|
|
}
|
|
|
catch (e) {
|
|
|
this.localStorage.removeItem(key);
|