Skip to content

Commit

Permalink
fix(renderer): reuse browser tabs when port 80 is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
exreplay committed Jun 16, 2019
1 parent b4305f6 commit 7631a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderer/src/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default class Builder {
this.isBrowserOpen = true;

let port = process.env.PORT || 3000;
port = port !== 80 ? `:${port}` : '';
port = parseInt(port) !== 80 ? `:${port}` : '';

openBrowser(`http://localhost${port}`);
}
Expand Down

0 comments on commit 7631a21

Please sign in to comment.