Refactor Signal app routing
This commit is contained in:
parent
86e6c2499c
commit
3ef0d221d1
28 changed files with 1347 additions and 1044 deletions
|
@ -136,6 +136,13 @@ export class App extends EventEmitter {
|
|||
return this.app.firstWindow();
|
||||
}
|
||||
|
||||
public async openSignalRoute(url: URL | string): Promise<void> {
|
||||
const window = await this.getWindow();
|
||||
await window.evaluate(
|
||||
`window.SignalCI.openSignalRoute(${JSON.stringify(url.toString())})`
|
||||
);
|
||||
}
|
||||
|
||||
// EventEmitter types
|
||||
|
||||
public override on(type: 'close', callback: () => void): this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue