Skip to content

Commit

Permalink
fix: consist url to open in browser with https option (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusFu authored Jun 3, 2020
1 parent cd1dae4 commit 32669ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async function runServe(options: UserConfig) {
require('debug')('vite:server')(`server ready in ${Date.now() - start}ms.`)

if (options.open) {
require('./utils/openBrowser').openBrowser(`http://localhost:${port}`)
require('./utils/openBrowser').openBrowser(`${protocol}://localhost:${port}`)
}
})
}
Expand Down

0 comments on commit 32669ba

Please sign in to comment.