From 4ea141c6fe2d602ebe83bf601f5300b9efcc40f5 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Sun, 27 Nov 2022 19:21:13 -0800 Subject: [PATCH] typos --- extension/popup.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extension/popup.js b/extension/popup.js index 6e46931..ca99fae 100644 --- a/extension/popup.js +++ b/extension/popup.js @@ -21,15 +21,15 @@ function getBrowser() { // store access details document.getElementById("save-login").addEventListener("click", function () { - let url = document.getElementById("url").value; + let url = document.getElementById("full-url").value; if (!url.includes('://')) { url = 'http://' + url; } let parsed = new URL(url); let toStore = { "access": { - "url": document.getElementById("full-url").host, - "port": document.getElementById("port").port || '80', + "url": parsed.host, + "port": parsed.port || '80', "apiKey": document.getElementById("api-key").value } }; @@ -91,7 +91,7 @@ function pingBackend() { console.log("connection validated") } } - + function handleError(error) { console.log(`Error: ${error}`); setStatusIcon(false); @@ -175,7 +175,7 @@ document.addEventListener("DOMContentLoaded", async () => { setCookieState(); } - + function onError(error) { console.log(`Error: ${error}`); };