Skip to content

Commit

Permalink
A bit more fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderson1993 committed Nov 7, 2020
1 parent 96f523f commit 75f9646
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions public/electron/helpers/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ let restartCount = 0;
module.exports = function bootstrap(serverWindow) {
function startServer() {
let port = settings.get("port") || 4444;
console.log(settings.get("httpOnly"), typeof settings.get("httpOnly"));
let httpOnly =
settings.get("httpOnly") === "true" ||
settings.get("httpOnly") === true ||
false;
settings.get("httpOnly") === undefined;

const childPath = isProd
? "build/server/index.js"
Expand Down
3 changes: 1 addition & 2 deletions public/electron/helpers/startApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ module.exports = () => {
let port = process.env.PORT || settings.get("port") || 4444;
let httpOnly =
process.env.HTTP_ONLY === "true" ||
settings.get("httpOnly") === "true" ||
settings.get("httpOnly") === true ||
false;
settings.get("httpOnly") === undefined;

const autoUpdateInit = require("./autoUpdate");
autoUpdateInit();
Expand Down

0 comments on commit 75f9646

Please sign in to comment.