Load site domains from .env files
This commit is contained in:
parent
333fda23d1
commit
2ee432487e
|
|
@ -4,9 +4,7 @@ local ContentProvider = game:GetService "ContentProvider"
|
||||||
-- remove www
|
-- remove www
|
||||||
local url = string.gsub(ContentProvider.BaseUrl, "www.", "")
|
local url = string.gsub(ContentProvider.BaseUrl, "www.", "")
|
||||||
|
|
||||||
local BaseUrl = {
|
local BaseUrl = {}
|
||||||
url = url,
|
|
||||||
}
|
|
||||||
|
|
||||||
function BaseUrl.path(path: string)
|
function BaseUrl.path(path: string)
|
||||||
return url .. path
|
return url .. path
|
||||||
|
|
|
||||||
|
|
@ -30,14 +30,4 @@ InsertService:SetAssetUrl(path "asset?id=%d")
|
||||||
InsertService:SetAssetVersionUrl(path "asset/?assetversionid=%d")
|
InsertService:SetAssetVersionUrl(path "asset/?assetversionid=%d")
|
||||||
InsertService:SetTrustLevel(0)
|
InsertService:SetTrustLevel(0)
|
||||||
|
|
||||||
if
|
ScriptContext:AddStarterScript(37801172)
|
||||||
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
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue