mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 19:50:12 +00:00
typos
This commit is contained in:
parent
afbcb5757e
commit
4ea141c6fe
@ -21,15 +21,15 @@ function getBrowser() {
|
|||||||
|
|
||||||
// store access details
|
// store access details
|
||||||
document.getElementById("save-login").addEventListener("click", function () {
|
document.getElementById("save-login").addEventListener("click", function () {
|
||||||
let url = document.getElementById("url").value;
|
let url = document.getElementById("full-url").value;
|
||||||
if (!url.includes('://')) {
|
if (!url.includes('://')) {
|
||||||
url = 'http://' + url;
|
url = 'http://' + url;
|
||||||
}
|
}
|
||||||
let parsed = new URL(url);
|
let parsed = new URL(url);
|
||||||
let toStore = {
|
let toStore = {
|
||||||
"access": {
|
"access": {
|
||||||
"url": document.getElementById("full-url").host,
|
"url": parsed.host,
|
||||||
"port": document.getElementById("port").port || '80',
|
"port": parsed.port || '80',
|
||||||
"apiKey": document.getElementById("api-key").value
|
"apiKey": document.getElementById("api-key").value
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user