add contribution actions

This commit is contained in:
MathieuG-P
2022-10-17 01:10:43 +02:00
parent 9fbceb1fe4
commit 513aef87fc
9 changed files with 88 additions and 8 deletions
@@ -0,0 +1,22 @@
import { IpcService } from "./ipc.service";
export class LinkOpenerService{
private static instance: LinkOpenerService;
private readonly ipcService: IpcService
public static getInstance(): LinkOpenerService{
if(!LinkOpenerService.instance){ LinkOpenerService.instance = new LinkOpenerService(); }
return LinkOpenerService.instance;
}
private constructor(){
this.ipcService = IpcService.getInstance();
}
public open(url: string): void{
this.ipcService.sendLazy("new-window", {args: url});
}
}