mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2026-07-29 19:09:30 +08:00
fix: host判断
This commit is contained in:
+1
-1
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user