summaryrefslogtreecommitdiff
path: root/static/js/src
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/src')
-rw-r--r--static/js/src/userlist.js8
1 files changed, 6 insertions, 2 deletions
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");