Adopt suggestions from Biome

This commit is contained in:
miniduikboot committed 2024-01-18 21:27:26 +01:00
1 parent 2ee4ca3c2e
commit 948aeeeb45
1 file changed
+2 -1
+2 -1
View File
@@ -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;
}