Skip to content

Commit

Permalink
Improve reliability #216
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Jun 23, 2022
1 parent 56d8cb3 commit 113a50c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ interface LibStorage {
key: string
issuers: string[]
settings_page: string
apiKey: string
}

interface LibWindow extends Electron.Rectangle {
maximized?: boolean
}

interface LibSettings {
Expand Down Expand Up @@ -85,7 +90,7 @@ interface LibSettings {
info: string
}

window: Electron.Rectangle
window: LibWindow

experimental?: {}
}
Expand Down
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,10 @@ const createWindows = () => {
positionWindow()
})

window_codes.on("maximize", () => {
positionWindow()
})

// Enable remote module
remote.enable(window_security.webContents)
remote.enable(window_codes.webContents)
Expand Down

0 comments on commit 113a50c

Please sign in to comment.