diff options
author | =Corey Hulen <corey@hulen.com> | 2015-10-23 08:35:38 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-10-23 08:35:38 -0700 |
commit | 3af3f2d01f3e15b1f93cbb1d355f25d11b417268 (patch) | |
tree | 57b76738016b2af6a63cb7fe5da7364c0dd72a26 /web | |
parent | 0cf24be0662fb9ee2a3b52bfb8c3903bc8c32b72 (diff) | |
download | chat-3af3f2d01f3e15b1f93cbb1d355f25d11b417268.tar.gz chat-3af3f2d01f3e15b1f93cbb1d355f25d11b417268.tar.bz2 chat-3af3f2d01f3e15b1f93cbb1d355f25d11b417268.zip |
Fixing issue with saving/getting drafts
Diffstat (limited to 'web')
-rw-r--r-- | web/react/stores/browser_store.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/stores/browser_store.jsx b/web/react/stores/browser_store.jsx index adaca44ee..75fb8aa3c 100644 --- a/web/react/stores/browser_store.jsx +++ b/web/react/stores/browser_store.jsx @@ -74,9 +74,9 @@ class BrowserStoreClass { var result = null; try { if (this.isLocalStorageSupported()) { - result = JSON.parse(getPrefix() + localStorage.getItem(name)); + result = JSON.parse(localStorage.getItem(getPrefix() + name)); } else { - result = JSON.parse(getPrefix() + sessionStorage.getItem(name)); + result = JSON.parse(sessionStorage.getItem(getPrefix() + name)); } } catch (err) { result = null; |