summaryrefslogtreecommitdiff
path: root/static/js/pichat2.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/pichat2.js')
-rw-r--r--static/js/pichat2.js8
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");