Make Toggle-CDN use alert() instead of tgui_alert() (#59478)

Co-authored-by: orbit <orbit@book>
This commit is contained in:
Cyprex
2021-06-03 16:55:52 +03:00
committed by GitHub
co-authored by orbit
parent 4655534b28
commit 9380b0335b
+1 -1
View File
@@ -84,7 +84,7 @@
set name = "Toggle CDN"
set category = "Server"
var/static/admin_disabled_cdn_transport = null
if (tgui_alert(usr, "Are you sure you want to toggle the CDN asset transport?", "Confirm", list("Yes", "No")) != "Yes")
if (alert(usr, "Are you sure you want to toggle the CDN asset transport?", "Confirm", "Yes", "No") != "Yes")
return
var/current_transport = CONFIG_GET(string/asset_transport)
if (!current_transport || current_transport == "simple")