Spaces:
Sleeping
Sleeping
- fix fe
Browse files178 unmodified lines179180181182183184185178 unmodified linesconsole.log("location host")console.log(location.host)// ws = new WebSocket(`${location.protocol === 'https:' ? 'wss' : 'ws'}://${location.host}/chat/${username}`);ws = new WebSocket(`ws://localhost:8000/chat/${username}`);document.getElementById("music-player").addEventListener("play", () => {musicStatus = "playing"178 unmodified lines179180181182183184185186187178 unmodified linesconsole.log("location host")console.log(location.host)// ws = new WebSocket(`${location.protocol === 'https:' ? 'wss' : 'ws'}://${location.host}/chat/${username}`);// ws = new WebSocket(`ws://localhost:8000/chat/${username}`);ws = new WebSocket(`${location.protocol === 'https:' ? 'wss' : 'ws'}://${location.host}/chat/${username}`);document.getElementById("music-player").addEventListener("play", () => {musicStatus = "playing"
frontend/index.html+3-1