diff options
| author | Julie Lala <jules@okfoc.us> | 2014-06-24 19:04:51 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-06-24 19:04:51 -0400 |
| commit | e923a60f4310f6c0179f56a426647222edc620d9 (patch) | |
| tree | 5bd315fc8d4f03f5bef1b0c25e24e9f028c5bbe3 /static/js/pichat2.js | |
| parent | aa061952dd30c8dc661733caf08406bd03bb200d (diff) | |
error checK
Diffstat (limited to 'static/js/pichat2.js')
| -rw-r--r-- | static/js/pichat2.js | 8 |
1 files changed, 6 insertions, 2 deletions
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"); |
