dongfeng-pay/gateway/static/js/reload.min.js

2 lines
352 B
JavaScript
Raw Normal View History

2021-04-27 15:33:49 +08:00
function b(a){var c=new WebSocket(a);c.onclose=function(){setTimeout(function(){b(a)},2E3)};c.onmessage=function(){location.reload()}}try{if(window.WebSocket)try{b("ws://localhost:12450/reload")}catch(a){console.error(a)}else console.log("Your browser does not support WebSockets.")}catch(a){console.error("Exception during connecting to Reload:",a)};