[MIRROR] Make Toggle-CDN use alert() instead of tgui_alert() (#6103)

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

Co-authored-by: orbit <orbit@ book>

* Make Toggle-CDN use alert() instead of tgui_alert()

Co-authored-by: Cyprex <35031555+Cyprex@users.noreply.github.com>
Co-authored-by: orbit <orbit@ book>
This commit is contained in:
SkyratBot
2021-06-03 23:17:13 +02:00
committed by GitHub
parent bd4f922086
commit d7bc663e5d
+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")