diff --git a/4chan_x.user.js b/4chan_x.user.js index 94f7467b0..9086750f8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1155,7 +1155,7 @@ Settings.addSection('Keybinds', Settings.keybinds); $.on(d, 'AddSettingsSection', Settings.addSection); $.on(d, 'OpenSettings', function(e) { - return Settings.open(e.detail.title); + return Settings.open(e.detail); }); if (Conf['Enable 4chan\'s extension']) { return; diff --git a/src/features.coffee b/src/features.coffee index cbebc9524..1a24aed28 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -152,7 +152,7 @@ Settings = Settings.addSection 'Rice', Settings.rice Settings.addSection 'Keybinds', Settings.keybinds $.on d, 'AddSettingsSection', Settings.addSection - $.on d, 'OpenSettings', (e) -> Settings.open e.detail.title + $.on d, 'OpenSettings', (e) -> Settings.open e.detail return if Conf['Enable 4chan\'s extension'] settings = JSON.parse(localStorage.getItem '4chan-settings') or {}