fix port parsing logic

This commit is contained in:
Kevin Gibbons 2022-12-01 17:30:24 -08:00
parent 030fb2d223
commit 18bfa28452
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ document.getElementById("save-login").addEventListener("click", function () {
let toStore = {
"access": {
"url": `${parsed.protocol}//${parsed.hostname}`,
"port": parsed.port || (parsed.protocol === 'https' ? '443' : '80'),
"port": parsed.port || (parsed.protocol === 'https:' ? '443' : '80'),
"apiKey": document.getElementById("api-key").value
}
};