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