mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 03:30:14 +00:00
fix it better
This commit is contained in:
parent
4ea141c6fe
commit
25dd6dbdc5
@ -28,8 +28,8 @@ document.getElementById("save-login").addEventListener("click", function () {
|
||||
let parsed = new URL(url);
|
||||
let toStore = {
|
||||
"access": {
|
||||
"url": parsed.host,
|
||||
"port": parsed.port || '80',
|
||||
"url": `${parsed.protocol}//${parsed.hostname}`,
|
||||
"port": parsed.port || (parsed.protocol === 'https' ? '443' : '80'),
|
||||
"apiKey": document.getElementById("api-key").value
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user