diff --git a/static/js/main.js b/static/js/main.js index 53d2dcb..2a94e57 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -6,7 +6,6 @@ import '../css/style.css'; const terminal = document.getElementById('terminal'); let ws; - function connectWebSocket (sshCredentials) { const isHttps = location.protocol === 'https:'; ws = new WebSocket(`${isHttps ? "wss" : "ws"}://${location.hostname}:${location.port}/ssh`); @@ -114,7 +113,6 @@ closeBtn.addEventListener('click', () => { location.reload(); }); - // 用于防抖的函数 function debounce (fn, delay) { let timer = null;