From 81a398ab2682b8b2848d658fa6b2cc14b4b5e3d2 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 7 Mar 2016 20:55:46 -0500 Subject: [PATCH] don't check for non existant key in localstorage --- contrib/static/nntpchan.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index af3db61..1553981 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -48,7 +48,5 @@ function enable_theme(prefix, name) { document.onload = function() { var st = get_storage(); - if (st.nntpchan) { - enable_theme(st.nntpchan_prefix, st.nntpchan_theme); - } + enable_theme(st.nntpchan_prefix, st.nntpchan_theme); }