Skip to content

Commit 4670b10

Browse files
committed
updated 统计处理
1 parent 8cbc9ea commit 4670b10

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

stat.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
if(location.protocol.indexOf('http')>-1&&location.hostname.indexOf('passer-by.com')==-1){
1010
location.href = 'https://passer-by.com/browser/';
1111
}else if( window.top != window.self ) {
12-
if(window.top.location.hostname.indexOf('passer-by.com')==-1){
13-
window.top.location.href = 'https://passer-by.com/browser/';
12+
try{
13+
if(window.top.location.hostname.indexOf('passer-by.com')==-1){
14+
window.top.location.href = 'https://passer-by.com/browser/';
15+
}
16+
}catch(e){
17+
if(confirm('【开源算法】https://passer-by.com/browser/')){
18+
window.top.location.href = 'https://passer-by.com/browser/';
19+
}
1420
}
1521
}
1622
},parseInt(3000+15000*Math.random()));

0 commit comments

Comments
 (0)