added onRendererReady

This commit is contained in:
booploops 2022-02-18 17:09:29 -08:00
parent e2a8b803e5
commit 451e25f071
3 changed files with 6 additions and 1 deletions

View file

@ -64,6 +64,7 @@ export class Plugins {
app: electron.app,
store: utils.getStore(),
utils: utils,
win: utils.getWindow(),
dir: pluginPath
}
plugins[plugin.name] = new plugin(pluginEnv);

View file

@ -61,6 +61,10 @@ app.on('ready', () => {
* Renderer Event Handlers
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
ipcMain.handle("renderer-ready", (event) => {
CiderPlug.callPlugins("onRendererReady", event);
})
ipcMain.on('playbackStateDidChange', (_event, attributes) => {
CiderPlug.callPlugins('onPlaybackStateDidChange', attributes);
});

View file

@ -821,7 +821,7 @@ const app = new Vue({
this.getBrowsePage();
this.$forceUpdate()
}, 500)
ipcRenderer.invoke("renderer-ready", true)
},
setTheme(theme = "") {
console.log(theme)