From 1cfe1d7e64c7c0ad0a4616faf64816e5dd169a8b Mon Sep 17 00:00:00 2001 From: "Pavlo (Paul) Buidenkov" Date: Wed, 24 Feb 2021 14:31:39 -0800 Subject: [PATCH] fix severe lags on Windows 10, ready for 1.0.9 --- app/main.dev.ts | 12 ++++++++---- app/package-lock.json | 2 +- app/package.json | 2 +- package.json | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/main.dev.ts b/app/main.dev.ts index 5c981676..03b2fd37 100644 --- a/app/main.dev.ts +++ b/app/main.dev.ts @@ -160,11 +160,15 @@ export default class DeskreenApp { return this.appVersion; }); - ipcMain.handle('get-local-lan-ip', () => { - return process.env.RUN_MODE === 'dev' || + ipcMain.handle('get-local-lan-ip', async () => { + if ( + process.env.RUN_MODE === 'dev' || process.env.NODE_ENV === 'production' - ? v4IPGetter.sync() - : '255.255.255.255'; + ) { + const ip = await v4IPGetter(); + return ip; + } + return '255.255.255.255'; }); } diff --git a/app/package-lock.json b/app/package-lock.json index d6c879ef..160324d1 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,5 +1,5 @@ { "name": "Deskreen", - "version": "1.0.8", + "version": "1.0.9", "lockfileVersion": 1 } diff --git a/app/package.json b/app/package.json index acd149c1..18d33c06 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { "name": "deskreen", "productName": "Deskreen", - "version": "1.0.8", + "version": "1.0.9", "description": "Deskreen turns any device into a secondary screen for your computer", "main": "./main.prod.js", "author": { diff --git a/package.json b/package.json index 28ff89f5..b1197d8c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "deskreen", "productName": "Deskreen", - "version": "1.0.8", + "version": "1.0.9", "description": "Deskreen turns any device into a secondary screen for your computer", "scripts": { "build": "yarn build-client && yarn build-main && yarn build-renderer",