- Small change to preload to define global.ipcRenderer early.

- Changed BW options and removed redundant options that (I think) are no longer used by the renderer.
- Added launch args to app.ts
This commit is contained in:
Core 2022-01-09 15:24:42 +00:00
parent 6dad815d48
commit 312a5a7b70
No known key found for this signature in database
GPG key ID: 1B77805746C47C28
4 changed files with 28 additions and 13 deletions

View file

@ -1,5 +1,4 @@
const electron = require('electron')
global.ipcRenderer = require('electron').ipcRenderer;
console.log('Loaded Preload')
let cache = {playParams: {id: 0}, status: null, remainingTime: 0},
@ -91,6 +90,5 @@ const MusicKitInterop = {
process.once('loaded', () => {
console.log("Setting ipcRenderer")
global.ipcRenderer = electron.ipcRenderer;
global.MusicKitInterop = MusicKitInterop;
});