diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-16 17:37:11 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-16 17:37:11 -0700 |
commit | cef7a1aae4205ebf4fbd8958f1f870ff69759edf (patch) | |
tree | a3bbd45979a89f9a4030f750b1a30099d7e565b9 /web | |
parent | e644b53b72d346539f5c58cc0cb0a07c4054cbcb (diff) | |
download | chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.tar.gz chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.tar.bz2 chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.zip |
PLT-92 Adding server side versioning to the binary
Diffstat (limited to 'web')
-rw-r--r-- | web/react/stores/browser_store.jsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/web/react/stores/browser_store.jsx b/web/react/stores/browser_store.jsx index e1ca52746..d2dedb271 100644 --- a/web/react/stores/browser_store.jsx +++ b/web/react/stores/browser_store.jsx @@ -9,9 +9,6 @@ function getPrefix() { return UserStore.getCurrentId() + '_'; } -// Also change model/utils.go ETAG_ROOT_VERSION -var BROWSER_STORE_VERSION = '.5'; - class BrowserStoreClass { constructor() { this.getItem = this.getItem.bind(this); @@ -25,9 +22,9 @@ class BrowserStoreClass { this.isLocalStorageSupported = this.isLocalStorageSupported.bind(this); var currentVersion = localStorage.getItem('local_storage_version'); - if (currentVersion !== BROWSER_STORE_VERSION) { + if (currentVersion !== global.window.config.Version) { this.clear(); - localStorage.setItem('local_storage_version', BROWSER_STORE_VERSION); + localStorage.setItem('local_storage_version', global.window.config.Version); } } |