From 0d550a8caa5abe098b4d109327766c19e9ffeb3e Mon Sep 17 00:00:00 2001 From: Justin Schreiber Date: Thu, 6 Oct 2022 12:30:32 -0400 Subject: [PATCH] minor change --- public/scripts/text.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/text.js b/public/scripts/text.js index f7173af..15c76b8 100644 --- a/public/scripts/text.js +++ b/public/scripts/text.js @@ -9,13 +9,13 @@ window.onload = () => { }).then((data) => { let ipaddr = Object.values(data).flat(); let x = 0; - text.innerHTML = `Connect to
${ipaddr[0]}:3000
on your other devices`; + text.innerHTML = `Connect to
http://${ipaddr[0]}:3000
on your other devices`; switchtext.addEventListener("click",((e) => { e.preventDefault(); if (x === ipaddr.length -1) x = 0; else x+=1; let iptext = document.getElementById("ip-text"); - iptext.innerText = `${ipaddr[x]}:3000`; + iptext.innerText = `http://${ipaddr[x]}:3000`; console.log(ipaddr[x]); })); });