Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Commit

Permalink
fix LocalStorageManager
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed Aug 18, 2019
1 parent ea72c77 commit 6afe682
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/service/localstorage-manager.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
let instance = null;
let _instance = null;
class LocalStorageManager {

static getInstance() {
if (instance == null) {
instance = new LocalStorageManager();
if (_instance == null) {
_instance = new LocalStorageManager();
}

return instance;
return _instance;
}

/**
Expand Down Expand Up @@ -47,7 +47,7 @@ class LocalStorageManager {
*
* @param {string} namespace
*/
static clearAllStateCaches(namespace) {
clearAllStateCaches(namespace) {
sessionStorage.removeItem(namespace);
}

Expand Down

0 comments on commit 6afe682

Please sign in to comment.