mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 11:40:13 +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 parsed = new URL(url);
|
||||||
let toStore = {
|
let toStore = {
|
||||||
"access": {
|
"access": {
|
||||||
"url": parsed.host,
|
"url": `${parsed.protocol}//${parsed.hostname}`,
|
||||||
"port": parsed.port || '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