Fixed all popout modals

master
WolverinDEV 2021-01-16 13:36:06 +01:00
parent 568aac4d04
commit 7b1852e647
3 changed files with 9 additions and 2 deletions

View File

@ -143,6 +143,7 @@ export namespace AppParameters {
parseParameters();
}
(window as any).AppParameters = AppParameters;
export namespace AppParameters {
export const KEY_CONNECT_ADDRESS: RegistryKey<string> = {
@ -216,6 +217,12 @@ export namespace AppParameters {
description: "Address of the owner for IPC communication."
};
export const KEY_IPC_REMOTE_POPOUT_CHANNEL: RegistryKey<string> = {
key: "ipc-channel",
valueType: "string",
description: "The channel name of the popout channel communication id"
};
export const KEY_MODAL_TARGET: RegistryKey<string> = {
key: "modal-target",
valueType: "string",

View File

@ -23,7 +23,7 @@ class PopoutController extends EventControllerBase<"popout"> {
super();
this.ipcRemoteId = AppParameters.getValue(AppParameters.KEY_IPC_REMOTE_ADDRESS, "invalid");
this.ipcChannel = getIPCInstance().createChannel(this.ipcRemoteId, AppParameters.getValue(AppParameters.KEY_IPC_REMOTE_ADDRESS, "invalid"));
this.ipcChannel = getIPCInstance().createChannel(this.ipcRemoteId, AppParameters.getValue(AppParameters.KEY_IPC_REMOTE_POPOUT_CHANNEL, "invalid"));
this.ipcChannel.messageHandler = this.handleIPCMessage.bind(this);
}

View File

@ -23,7 +23,7 @@ export class AudioLibrary {
private static spawnNewWorker() : Worker {
/*
* Attention don't use () => new Worker(...).
* Attention don't use () => new Worker(...).
* This confuses the worker plugin and will not emit any modules
*/
return new Worker("./worker/index.ts", { type: "module" });