瀏覽代碼

Removed unneeded logic

Thokoop 1 年之前
父節點
當前提交
3f470e14a1
共有 1 個文件被更改,包括 0 次插入 和 5 次删除
  1. 0 5
      static/main.js

+ 0 - 5
static/main.js

@@ -548,11 +548,6 @@ async function disconnectSerial() {
 
 async function restartSerial() {
     const port = document.getElementById('serial_ports').value;
-
-    if(!port){
-        document.getElementById('serial_status').innerHTML;
-    }
-
     const response = await fetch('/restart_serial', {
         method: 'POST',
         headers: { 'Content-Type': 'application/json' },