Remove redundant serverAddress check
We now guarantee there is an address.
This commit is contained in:
parent
305348f0ac
commit
cde94d5ed4
@ -159,7 +159,7 @@ const main = async (args: DefaultedArgs): Promise<void> => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (serverAddress && !args.socket && args.open) {
|
if (!args.socket && args.open) {
|
||||||
// The web socket doesn't seem to work if browsing with 0.0.0.0.
|
// The web socket doesn't seem to work if browsing with 0.0.0.0.
|
||||||
const openAddress = serverAddress.replace(/:\/\/0.0.0.0/, "://localhost")
|
const openAddress = serverAddress.replace(/:\/\/0.0.0.0/, "://localhost")
|
||||||
await open(openAddress).catch((error: Error) => {
|
await open(openAddress).catch((error: Error) => {
|
||||||
|
Reference in New Issue
Block a user