From 565d859c987615ec23ae97e5d39ec00fc9f2d80f Mon Sep 17 00:00:00 2001 From: flaskfarm Date: Wed, 12 Oct 2022 19:17:22 +0900 Subject: [PATCH] update --- lib/system/templates/system_restart.html | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/system/templates/system_restart.html b/lib/system/templates/system_restart.html index e1e85c6..89231d5 100644 --- a/lib/system/templates/system_restart.html +++ b/lib/system/templates/system_restart.html @@ -24,15 +24,14 @@ $(document).ready(function() { if (MODULE_NAME == 'restart') { $('#loading').show(); setTimeout(function(){ - }, 2000); - - var protocol = window.location.protocol; - var restartSocket = io.connect(window.location.href); - - restartSocket.on('connect', function(data){ - console.log('접속 받음') - window.location.href = referer; - }); + var protocol = window.location.protocol; + var restartSocket = io.connect(window.location.href); + + restartSocket.on('connect', function(data){ + console.log('접속 받음') + window.location.href = referer; + }); + }, 3000); } })