Merge pull request #150 from mattermost/mm-895

MM-895 Reorganization of browser storage.
Этот коммит содержится в:
Joram Wilander
2015-07-08 14:47:49 -04:00
родитель a65b2a2df5 ce5639a629
Коммит 11dde6c44b
16 изменённых файлов: 234 добавлений и 124 удалений

Просмотреть файл

@@ -97,20 +97,6 @@ module.exports.getCookie = function(name) {
if (parts.length == 2) return parts.pop().split(";").shift();
}
module.exports.isLocalStorageSupported = function() {
try {
sessionStorage.setItem("testSession", '1');
sessionStorage.removeItem("testSession");
localStorage.setItem("testLocal", '1');
localStorage.removeItem("testLocal", '1');
return true;
}
catch (e) {
return false;
}
}
module.exports.notifyMe = function(title, body, channel) {
if ("Notification" in window && Notification.permission !== 'denied') {