Skip to content

Commit

Permalink
feat(core): add '--port' flag
Browse files Browse the repository at this point in the history
  • Loading branch information
xNaCly committed Apr 24, 2023
1 parent 6af5ead commit 1570018
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ func LivePreview(fileName string) {
var upgrader = websocket.Upgrader{}
var conn *websocket.Conn = nil

// TODO: make this a flag, --port x
port := "12345"
port := cli.ARGUMENTS.GetArg("port")

if port == "" {
port = "12345"
}

logger.LInfo("starting live preview")

Expand Down

0 comments on commit 1570018

Please sign in to comment.