summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/user-interface.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/src/main/user-interface.ts b/gui/src/main/user-interface.ts
index 833edac26d..de902e2d7c 100644
--- a/gui/src/main/user-interface.ts
+++ b/gui/src/main/user-interface.ts
@@ -287,8 +287,8 @@ export default class UserInterface implements WindowControllerDelegate {
backgroundColor: '#fff',
});
const WM_DEVICECHANGE = 0x0219;
- const DBT_DEVICEARRIVAL = 0x8000;
- const DBT_DEVICEREMOVECOMPLETE = 0x8004;
+ const DBT_DEVICEARRIVAL = 0x8000n;
+ const DBT_DEVICEREMOVECOMPLETE = 0x8004n;
appWindow.hookWindowMessage(WM_DEVICECHANGE, (wParam) => {
const wParamL = wParam.readBigInt64LE(0);
if (wParamL != DBT_DEVICEARRIVAL && wParamL != DBT_DEVICEREMOVECOMPLETE) {
@@ -372,7 +372,7 @@ export default class UserInterface implements WindowControllerDelegate {
// add inspect element on right click menu
this.windowController.window?.webContents.on(
'context-menu',
- (_e: Event, props: { x: number; y: number; isEditable: boolean }) => {
+ (_e: Electron.Event, props: { x: number; y: number; isEditable: boolean }) => {
const inspectTemplate = [
{
label: 'Inspect element',
@@ -512,7 +512,7 @@ export default class UserInterface implements WindowControllerDelegate {
this.windowController.window?.on('close', this.windowCloseHandler);
}
- private windowCloseHandler = (closeEvent: Event) => {
+ private windowCloseHandler = (closeEvent: Electron.Event) => {
closeEvent.preventDefault();
this.windowController.hide();
};