mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-08-22 16:10:52 +00:00
Cleanup
This commit is contained in:
@@ -36,7 +36,7 @@ function Server(remote, opts) {
|
||||
throw new Error('Server host is malformed, use "host" and "port" server configuration');
|
||||
}
|
||||
|
||||
if (isNaN(opts.port)) {
|
||||
if (typeof opts.port !== 'number') {
|
||||
throw new TypeError('Server configuration "port" is not a Number');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user