mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
Adopt suggestions from Biome
This commit is contained in:
1 parent
2ee4ca3c2e
commit
948aeeeb45
1 file changed
+2
-1
@@ -60,6 +60,7 @@ function setPlatform(platform) {
|
||||
// HTTPS is mandatory on ios/android
|
||||
const protocol = document.getElementById("protocol");
|
||||
if (platform === "android" || platform === "ios") {
|
||||
httpsSetExplicitly = protocol.value === "https";
|
||||
protocol.value = "https";
|
||||
protocol.disabled = true;
|
||||
setPortIfDefault("https");
|
||||
@@ -140,7 +141,7 @@ function fillFromLocationHash() {
|
||||
document.getElementById("address").value = serverAddress;
|
||||
}
|
||||
|
||||
if (parseInt(serverPort) !== NaN) {
|
||||
if (!Number.IsNan(parseInt(serverPort))) {
|
||||
document.getElementById("port").value = serverPort;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user