Skip to content

Commit 3310d36

Browse files
update
1 parent 25b32ba commit 3310d36

File tree

3 files changed

+176
-36
lines changed

3 files changed

+176
-36
lines changed

main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ const windowStateKeeper = require('electron-window-state');
44
const fs = require('fs')
55
const path = require("path")
66
const Pinokiod = require("pinokiod")
7+
const os = require('os')
78
const is_mac = process.platform.startsWith("darwin")
89
const packagejson = require("./package.json")
10+
const platform = os.platform()
911
var mainWindow;
1012
var root_url;
1113
var wins = {}
@@ -14,7 +16,7 @@ var launched
1416
var theme
1517
var colors
1618
//let PORT = 42000
17-
let PORT = 80
19+
let PORT = (platform === 'linux' ? 42000 : 80)
1820

1921
const filter = function (item) {
2022
return item.browserName === 'Chrome';

package-lock.json

Lines changed: 171 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)