mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-05-19 16:10:40 +00:00
server hardening + deperation to tget the installer served
This commit is contained in:
+7
-1
@@ -24,7 +24,13 @@ const totalServers = ref('...')
|
||||
const isLoading = ref(true)
|
||||
const heroImageLoaded = ref(false)
|
||||
const heroImageSrc = ref(landingLq)
|
||||
const installerDownloadUrl = `${import.meta.env.BASE_URL}installer/BeamMP_Installer.msi`
|
||||
const installerDownloadUrl = computed(() => {
|
||||
const base = import.meta.env.BASE_URL || '/'
|
||||
if (base === './') {
|
||||
return '/installer/BeamMP_Installer.msi'
|
||||
}
|
||||
return `${base.replace(/\/$/, '')}/installer/BeamMP_Installer.msi`
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user