webui/index.html: Fix: remove debug prints
Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
		@@ -119,13 +119,11 @@
 | 
			
		||||
 | 
			
		||||
            function check(checkbox, name) {
 | 
			
		||||
                var obj;
 | 
			
		||||
                console.log("name: ", name);
 | 
			
		||||
                if(checkbox.checked) {
 | 
			
		||||
                    obj = '{"name":"' + name + '","state":"on"}'
 | 
			
		||||
                } else {
 | 
			
		||||
                    obj = '{"name":"' + name + '","state":"off"}'
 | 
			
		||||
                }
 | 
			
		||||
                console.log(obj);
 | 
			
		||||
                const xhr = new XMLHttpRequest();
 | 
			
		||||
                xhr.open("PATCH", "/state");
 | 
			
		||||
                xhr.setRequestHeader("Content-type", "application/json; charset=utf-8");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user