mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2025-05-25 01:57:36 +08:00
fix: host判断
This commit is contained in:
parent
43c017f19b
commit
d1d7c6b2f0
|
@ -32,7 +32,7 @@
|
|||
// 否则请标明原仓库地址
|
||||
setTimeout(()=>{
|
||||
const {host} = location
|
||||
if(host!=='localhost'||!host.endsWith('streakingman.com')){
|
||||
if(host!=='localhost'&&!host.endsWith('streakingman.com')){
|
||||
const a = document.createElement('a')
|
||||
a.setAttribute('href','https://github.com/StreakingMan/solvable-sheep-game')
|
||||
a.setAttribute('target','_blank')
|
||||
|
|
Loading…
Reference in New Issue
Block a user