diff --git a/4chan_x.user.js b/4chan_x.user.js index d72de0c82..9971dc82a 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1621,7 +1621,7 @@ input.value = $.get(name, Conf[name]); event = ['favicon', 'usercss'].contains(name) ? 'change' : 'input'; $.on(input, event, $.cb.value); - if (!['usercss'].contains(name)) { + if ('usercss' !== name) { $.on(input, event, Settings[name]); Settings[name].call(input); } diff --git a/src/features.coffee b/src/features.coffee index ea44915f6..5b5f9e5b3 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -575,7 +575,7 @@ Settings = else 'input' $.on input, event, $.cb.value - unless ['usercss'].contains name + unless 'usercss' is name $.on input, event, Settings[name] Settings[name].call input $.on $.id('apply-css'), 'click', Settings.usercss