Load site domains from .env files

This commit is contained in:
Lewin Kelly 2024-04-15 00:59:17 +01:00
parent 333fda23d1
commit 2ee432487e
2 changed files with 2 additions and 14 deletions

View File

@ -4,9 +4,7 @@ local ContentProvider = game:GetService "ContentProvider"
-- remove www
local url = string.gsub(ContentProvider.BaseUrl, "www.", "")
local BaseUrl = {
url = url,
}
local BaseUrl = {}
function BaseUrl.path(path: string)
return url .. path

View File

@ -30,14 +30,4 @@ InsertService:SetAssetUrl(path "asset?id=%d")
InsertService:SetAssetVersionUrl(path "asset/?assetversionid=%d")
InsertService:SetTrustLevel(0)
if
not pcall(function()
print "Adding starter script (1)"
ScriptContext:AddStarterScript(37801172)
end)
then
pcall(function()
print "Adding starter script (2)"
ScriptContext:AddCoreScript(37801172, ScriptContext, "StarterScript")
end)
end
ScriptContext:AddStarterScript(37801172)