Updates for 1.5.0
This commit is contained in:
@@ -103,7 +103,7 @@ export class ObjectProxyClient<ObjectType extends ProxyInterface<ObjectType>> {
|
||||
}) as any;
|
||||
}
|
||||
|
||||
private handleIPCMessage(event: IpcRendererEvent, ...args: any[]) {
|
||||
private handleIPCMessage(_event: IpcRendererEvent, ...args: any[]) {
|
||||
const actionType = args[0];
|
||||
|
||||
if(actionType === "notify-event") {
|
||||
|
||||
@@ -18,7 +18,7 @@ export abstract class ProxiedClass<Interface extends { events?: ProxiedEvents<In
|
||||
|
||||
public readonly events: ProxiedEvents<Interface["events"]>;
|
||||
|
||||
public constructor(props: ProxiedClassProperties) {
|
||||
protected constructor(props: ProxiedClassProperties) {
|
||||
this.ownerWindowId = props.ownerWindowId;
|
||||
this.instanceId = props.instanceId;
|
||||
this.events = props.events;
|
||||
|
||||
@@ -67,7 +67,7 @@ export class ObjectProxyServer<ObjectType extends ProxyInterface<ObjectType>> {
|
||||
private generateEventProxy(instanceId: string, owningWindowId: number) : {} {
|
||||
const ipcChannel = this.ipcChannel;
|
||||
return new Proxy({ }, {
|
||||
get(target: { }, event: PropertyKey, receiver: any): any {
|
||||
get(target: { }, event: PropertyKey, _receiver: any): any {
|
||||
return (...args: any) => {
|
||||
const window = BrowserWindow.fromId(owningWindowId);
|
||||
if(!window) return;
|
||||
|
||||
Reference in New Issue
Block a user