mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 19:50:12 +00:00
fix port parsing logic
This commit is contained in:
parent
030fb2d223
commit
18bfa28452
@ -29,7 +29,7 @@ document.getElementById("save-login").addEventListener("click", function () {
|
|||||||
let toStore = {
|
let toStore = {
|
||||||
"access": {
|
"access": {
|
||||||
"url": `${parsed.protocol}//${parsed.hostname}`,
|
"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
|
"apiKey": document.getElementById("api-key").value
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user