diff --git a/src/app/tabs/settings-tab.js b/src/app/tabs/settings-tab.js index 0053a2c205..85c31c7ef1 100644 --- a/src/app/tabs/settings-tab.js +++ b/src/app/tabs/settings-tab.js @@ -136,14 +136,15 @@ module.exports = class SettingsTab { function loadPlugins (plugins, opt) { for (var k in plugins) { - var plugin = plugins[k] - if (!self._view.plugins[plugin.title]) self._view.plugins[plugin.title] = {} - self._view.plugins[plugin.title].json = plugin - self._view.plugins[plugin.title].el = yo`
-
{ onLoadPlugin(plugin.title) }}>${plugin.title}
- ${opt.removable ? yo` { onRemovePlugin(plugin.title) }}>` : yo``} -
` - self._view.config.plugins.appendChild(self._view.plugins[plugin.title].el) + (function (plugin) { + if (!self._view.plugins[plugin.title]) self._view.plugins[plugin.title] = {} + self._view.plugins[plugin.title].json = plugin + self._view.plugins[plugin.title].el = yo`
+
{ onLoadPlugin(plugin.title) }}>${plugin.title}
+ ${opt.removable ? yo` { onRemovePlugin(plugin.title) }}>` : yo``} +
` + self._view.config.plugins.appendChild(self._view.plugins[plugin.title].el) + })(plugins[k]) } }