updated 跳转条件修改

This commit is contained in:
PASSER-BY 2022-02-23 21:27:06 +08:00
parent 0a0858d618
commit 1d9ebeb3ba

View File

@ -15,8 +15,8 @@
<link rel="stylesheet" href="style/index.css">
<script type="text/javascript">
setTimeout(function(){
if(location.hostname.indexOf('passer-by.com')==-1){
// location.href = 'http://passer-by.com/';
if(location.protocol.indexOf('http')>-1&&location.hostname.indexOf('passer-by.com')==-1){
location.href = 'http://passer-by.com/';
}else if( window.top != window.self ) {
window.top.location = self.location.href;
}