This commit is contained in:
Nicolas Stepien 2013-02-16 00:24:59 +01:00
parent 7494a1a9b8
commit a58b5c7670
2 changed files with 4 additions and 4 deletions

View File

@ -1135,10 +1135,10 @@
el: link,
order: 111,
open: function() {
return !Conf['Enable 4chan\'s extension'];
return Conf['Enable 4chan\'s extension'];
}
});
if (!Conf['Enable 4chan\'s extension']) {
if (Conf['Enable 4chan\'s extension']) {
return;
}
settings = JSON.parse(localStorage.getItem('4chan-settings')) || {};

View File

@ -137,9 +137,9 @@ Settings =
type: 'header'
el: link
order: 111
open: -> !Conf['Enable 4chan\'s extension']
open: -> Conf['Enable 4chan\'s extension']
return unless Conf['Enable 4chan\'s extension']
return if Conf['Enable 4chan\'s extension']
settings = JSON.parse(localStorage.getItem '4chan-settings') or {}
return if settings.disableAll
settings.disableAll = true