1
0
mirror of https://github.com/pavlobu/deskreen.git synced 2025-05-18 16:30:10 -07:00

Merge pull request #124 from pavlobu/fix-win

fix severe lags on Windows 10, ready for 1.0.9
This commit is contained in:
Paul Pavlo Buidenkov 2021-02-24 14:46:57 -08:00 committed by GitHub
commit d21eaf1f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 7 deletions

View File

@ -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';
});
}

2
app/package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "Deskreen",
"version": "1.0.8",
"version": "1.0.9",
"lockfileVersion": 1
}

View File

@ -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": {

View File

@ -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",