mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fixing issue with saving/getting drafts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user