diff --git a/code/game/machinery/telecomms/traffic_control.dm b/code/game/machinery/telecomms/traffic_control.dm index d484fd144fd..f110d740b63 100644 --- a/code/game/machinery/telecomms/traffic_control.dm +++ b/code/game/machinery/telecomms/traffic_control.dm @@ -116,7 +116,8 @@ function compileCode() { var codeText = cMirror_fSubmit.getValue(); - window.location = "byond://?src=\ref[src];choice=Compile;cMirror=" + encodeURIComponent(codeText); + document.getElementById("cMirrorPost").value = codeText; + document.getElementById("theform").submit(); } function clearCode() { @@ -129,6 +130,12 @@