From f7cbf2c221dc817e754cb569d3191db8b12750a3 Mon Sep 17 00:00:00 2001 From: TC Date: Tue, 12 Jan 2021 21:19:01 +0100 Subject: [PATCH] No autoloading of providers (loaded on demand in plugins) --- index.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/index.js b/index.js index a083d4d9..4d5fb9d6 100644 --- a/index.js +++ b/index.js @@ -28,8 +28,6 @@ if (config.get("options.disableHardwareAcceleration")) { // Adds debug features like hotkeys for triggering dev tools and reload require("electron-debug")(); -// these are the providers for the plugins, this shouldn't be hardcoded but it's temporarily -const providers = ["song-info"]; // Prevent window being garbage collected let mainWindow; autoUpdater.autoDownload = false; @@ -56,15 +54,6 @@ function loadPlugins(win) { } }); - providers.forEach(provider => { - console.log("Loaded provider - " + provider); - const providerPath = path.join(__dirname, "providers", provider, "back.js"); - fileExists(providerPath, () => { - const handle = require(providerPath); - handle(win); - }); - }); - config.plugins.getEnabled().forEach(([plugin, options]) => { console.log("Loaded plugin - " + plugin); const pluginPath = path.join(__dirname, "plugins", plugin, "back.js");