add login and register logic
This commit is contained in:
parent
b05cb202b6
commit
46a127c217
7 changed files with 82 additions and 47 deletions
|
|
@ -4,14 +4,14 @@ import { app } from "electron";
|
|||
import { main } from './run';
|
||||
import { windowEmitter } from './windowEmitter';
|
||||
|
||||
let winActive: boolean;
|
||||
|
||||
windowEmitter.on('window-active', (state: boolean) => {
|
||||
winActive = state;
|
||||
});
|
||||
|
||||
export function initApp(dev: boolean): void {
|
||||
|
||||
let winActive: boolean;
|
||||
|
||||
windowEmitter.on('window-active', (state: boolean) => {
|
||||
winActive = state;
|
||||
});
|
||||
|
||||
app.on("ready", () => {
|
||||
main();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue