reformatted file structure and reformatted for phones, as well as fixed web sockets for remote devices
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
window.post = function(url, data) {
|
||||
return fetch(url, {method: "POST", headers: {'Content-Type': 'application/json'}, body: JSON.stringify(data)});
|
||||
}
|
||||
var ws = new WebSocket("ws://localhost:80/scan/ws");
|
||||
var ws = new WebSocket("ws://{{request.url.hostname}}:80/scan/ws");
|
||||
ws.onmessage = function(event) {
|
||||
if (event.data == "Done") {
|
||||
document.getElementById("scanButton").innerHTML = "Scan"
|
||||
|
||||
Reference in New Issue
Block a user