From 124e8a9e2ee748073a8cb5384ff0efc473eabeae Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 5 Mar 2020 09:57:11 -0500 Subject: [PATCH] Fix missing this --- core.mongogx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core.mongogx.js b/core.mongogx.js index d509173..d2ec639 100644 --- a/core.mongogx.js +++ b/core.mongogx.js @@ -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){ @@ -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);