diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2014-06-24 19:04:14 -0400 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2014-06-24 19:04:14 -0400 |
| commit | 0f957d316cfae62f9cfabc8df1d26e906de3e553 (patch) | |
| tree | bc46527e1d29e3d3c7b9a398f3db881d7cf2d4dd | |
| parent | 920cb1f15f2db2c5e562cdf02d94e9d141307573 (diff) | |
| parent | e923a60f4310f6c0179f56a426647222edc620d9 (diff) | |
Merge branch 'master' of /pichat/repo
| -rw-r--r-- | static/js/pichat.js | 8 | ||||
| -rw-r--r-- | static/js/pichat2.js | 8 | ||||
| -rw-r--r-- | static/js/src/userlist.js | 8 |
3 files changed, 18 insertions, 6 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index dc3b43b..b0bba88 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -2248,8 +2248,12 @@ function linkReplaceWithoutImage(url){ return "<a target='_blank' href='" + linkUrl + "'>" + url + "</a>" } -var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {}; - +try { + var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {}; +} +catch (e) { + delete localStorage["mutes"] +} $(".mute").live("click", function(){ $(this).removeClass("mute"); $(this).addClass("unmute"); diff --git a/static/js/pichat2.js b/static/js/pichat2.js index dc3b43b..b0bba88 100644 --- a/static/js/pichat2.js +++ b/static/js/pichat2.js @@ -2248,8 +2248,12 @@ function linkReplaceWithoutImage(url){ return "<a target='_blank' href='" + linkUrl + "'>" + url + "</a>" } -var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {}; - +try { + var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {}; +} +catch (e) { + delete localStorage["mutes"] +} $(".mute").live("click", function(){ $(this).removeClass("mute"); $(this).addClass("unmute"); diff --git a/static/js/src/userlist.js b/static/js/src/userlist.js index d18da65..3ccb9b2 100644 --- a/static/js/src/userlist.js +++ b/static/js/src/userlist.js @@ -1,5 +1,9 @@ -var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {}; - +try { + var MUTES = localStorage["mutes"] ? JSON.parse(localStorage["mutes"]) : {}; +} +catch (e) { + delete localStorage["mutes"] +} $(".mute").live("click", function(){ $(this).removeClass("mute"); $(this).addClass("unmute"); |
