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
|
||||
local url = string.gsub(ContentProvider.BaseUrl, "www.", "")
|
||||
|
||||
local BaseUrl = {
|
||||
url = url,
|
||||
}
|
||||
local BaseUrl = {}
|
||||
|
||||
function BaseUrl.path(path: string)
|
||||
return url .. path
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue