chore: Fix codestyle to satisfy linter, and typo. (#22954)
This commit is contained in:
parent
c4cabbb11a
commit
d92f74f877
1 changed files with 2 additions and 2 deletions
|
|
@ -7,11 +7,11 @@ function get_url(socket, path) {
|
|||
}
|
||||
let url = socket.request.headers.origin;
|
||||
if (conf.developer_mode) {
|
||||
let [protocal, host, port] = url.split(':');
|
||||
let [protocol, host, port] = url.split(":");
|
||||
if (port != conf.webserver_port) {
|
||||
port = conf.webserver_port;
|
||||
}
|
||||
url = `${protocal}:${host}:${port}`;
|
||||
url = `${protocol}:${host}:${port}`;
|
||||
}
|
||||
return url + path;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue