Skip to content

Commit

Permalink
refactor: cancel unnecessary href
Browse files Browse the repository at this point in the history
  • Loading branch information
huanglonghui committed Jan 12, 2024
1 parent 1123de6 commit 4bf8566
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Static/wstool.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
<title>websocket/ws/wss在线调试测试工具</title>

<script>
var isHttps = 'https:' === document.location.protocol ? true : false;
var isBaidu = (navigator.userAgent.match(/(Baiduspider)/i));
if ( isHttps && !isBaidu ){
window.location.href = 'http://www.easyswoole.com/wstool.html'
}

// var isHttps = 'https:' === document.location.protocol ? true : false;
// var isBaidu = (navigator.userAgent.match(/(Baiduspider)/i));
// if ( isHttps && !isBaidu ){
// window.location.href = 'http://www.easyswoole.com/wstool.html'
// }
</script>

</head>
Expand Down Expand Up @@ -170,4 +169,4 @@ <h5 class="card-title" style="display: inline">消息记录</h5>
<script src="/wsTool/socket.js"></script>

</body>
</html>
</html>

0 comments on commit 4bf8566

Please sign in to comment.