From 68c071e318a300bc00529f37b0cdd940db182065 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 8 Mar 2016 10:45:39 -0500 Subject: [PATCH] don't use main/onload for theme application --- contrib/static/nntpchan.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 5448462..7db7171 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -47,7 +47,9 @@ function enable_theme(prefix, name) { } function main() { - // apply themes - var st = get_storage(); - enable_theme(st.nntpchan_prefix, st.nntpchan_theme); + // do other initialization here } + +// apply themes +var st = get_storage(); +enable_theme(st.nntpchan_prefix, st.nntpchan_theme);