Skip to content

Commit

Permalink
Merge pull request #124 from pavlobu/fix-win
Browse files Browse the repository at this point in the history
fix severe lags on Windows 10, ready for 1.0.9
  • Loading branch information
pavlobu authored Feb 24, 2021
2 parents 671763b + 1cfe1d7 commit d21eaf1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions app/main.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
});
}

Expand Down
2 changes: 1 addition & 1 deletion app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit d21eaf1

Please sign in to comment.