diff --git a/code/game/machinery/telecomms/traffic_control.dm b/code/game/machinery/telecomms/traffic_control.dm index 6fc03276f9b..da8669e45e0 100644 --- a/code/game/machinery/telecomms/traffic_control.dm +++ b/code/game/machinery/telecomms/traffic_control.dm @@ -90,30 +90,33 @@ } -
+ function compileCode() { + var codeText = cMirror_fSubmit.getValue(); + window.location = "byond://?src=\ref[src];choice=Compile;cMirror=" + encodeURIComponent(codeText); + } + + function clearCode() { + window.location = "byond://?src=\ref[src];choice=Clear;"; + } + + Compile + Clear