Skip to content

Commit

Permalink
Fix missing this
Browse files Browse the repository at this point in the history
  • Loading branch information
globules-io committed Mar 5, 2020
1 parent 4f9cf8a commit 124e8a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core.mongogx.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ OGX.Mongogx = class{

case OGX.Mongogx.LOCAL_STORAGE:
case OGX.Mongogx.SESSION_STORAGE:
let storage = _getStorage(this.options.storage);
let storage = this._getStorage(this.options.storage);
let data = storage.getItem('mongogx');
if(data){
if(that.options.encryption){
Expand Down Expand Up @@ -333,7 +333,7 @@ OGX.Mongogx = class{

case OGX.Mongogx.LOCAL_STORAGE:
case OGX.Mongogx.SESSION_STORAGE:
let storage = _getStorage(this.options.storage);
let storage = this._getStorage(this.options.storage);
setTimeout(function(){
storage.setItem('mongogx', data);
}, that.options.write_concern.delay);
Expand Down

0 comments on commit 124e8a9

Please sign in to comment.