Fixed all popout modals
parent
568aac4d04
commit
7b1852e647
|
@ -143,6 +143,7 @@ export namespace AppParameters {
|
||||||
|
|
||||||
parseParameters();
|
parseParameters();
|
||||||
}
|
}
|
||||||
|
(window as any).AppParameters = AppParameters;
|
||||||
|
|
||||||
export namespace AppParameters {
|
export namespace AppParameters {
|
||||||
export const KEY_CONNECT_ADDRESS: RegistryKey<string> = {
|
export const KEY_CONNECT_ADDRESS: RegistryKey<string> = {
|
||||||
|
@ -216,6 +217,12 @@ export namespace AppParameters {
|
||||||
description: "Address of the owner for IPC communication."
|
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> = {
|
export const KEY_MODAL_TARGET: RegistryKey<string> = {
|
||||||
key: "modal-target",
|
key: "modal-target",
|
||||||
valueType: "string",
|
valueType: "string",
|
||||||
|
|
|
@ -23,7 +23,7 @@ class PopoutController extends EventControllerBase<"popout"> {
|
||||||
super();
|
super();
|
||||||
this.ipcRemoteId = AppParameters.getValue(AppParameters.KEY_IPC_REMOTE_ADDRESS, "invalid");
|
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);
|
this.ipcChannel.messageHandler = this.handleIPCMessage.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ export class AudioLibrary {
|
||||||
|
|
||||||
private static spawnNewWorker() : Worker {
|
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
|
* This confuses the worker plugin and will not emit any modules
|
||||||
*/
|
*/
|
||||||
return new Worker("./worker/index.ts", { type: "module" });
|
return new Worker("./worker/index.ts", { type: "module" });
|
||||||
|
|
Loading…
Reference in New Issue