fix: host判断

This commit is contained in:
streakingman 2022-09-21 10:11:40 +08:00
parent 43c017f19b
commit d1d7c6b2f0

View File

@ -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')