File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ if (config.get("options.disableHardwareAcceleration")) {
28
28
// Adds debug features like hotkeys for triggering dev tools and reload
29
29
require ( "electron-debug" ) ( ) ;
30
30
31
+ // these are the providers for the plugins, this shouldn't be hardcoded but it's temporarily
32
+ const providers = [ "song-info" ] ;
31
33
// Prevent window being garbage collected
32
34
let mainWindow ;
33
35
autoUpdater . autoDownload = false ;
@@ -54,6 +56,15 @@ function loadPlugins(win) {
54
56
}
55
57
} ) ;
56
58
59
+ providers . forEach ( provider => {
60
+ console . log ( "Loaded provider - " + provider ) ;
61
+ const providerPath = path . join ( __dirname , "providers" , provider , "back.js" ) ;
62
+ fileExists ( providerPath , ( ) => {
63
+ const handle = require ( providerPath ) ;
64
+ handle ( win ) ;
65
+ } ) ;
66
+ } ) ;
67
+
57
68
config . plugins . getEnabled ( ) . forEach ( ( [ plugin , options ] ) => {
58
69
console . log ( "Loaded plugin - " + plugin ) ;
59
70
const pluginPath = path . join ( __dirname , "plugins" , plugin , "back.js" ) ;
You can’t perform that action at this time.
0 commit comments