webconsole post improvement
This commit is contained in:
parent
bca366d7e5
commit
66aa84d896
@ -1,9 +1,11 @@
|
|||||||
package util;
|
package util;
|
||||||
|
|
||||||
import cc.HTTP;
|
|
||||||
import kernel.net.Net;
|
|
||||||
import cc.ComputerCraft;
|
import cc.ComputerCraft;
|
||||||
import kernel.Log;
|
import kernel.Log;
|
||||||
|
#if webconsole
|
||||||
|
import cc.HTTP;
|
||||||
|
import kernel.net.Net;
|
||||||
|
#end
|
||||||
|
|
||||||
class Debug {
|
class Debug {
|
||||||
public static function printBuildInfo() {
|
public static function printBuildInfo() {
|
||||||
@ -18,7 +20,7 @@ class Debug {
|
|||||||
|
|
||||||
#if webconsole
|
#if webconsole
|
||||||
public static function printWeb(msg:String) {
|
public static function printWeb(msg:String) {
|
||||||
HTTP.post("http://127.0.0.1:8080/"+Net.instance.networkID, msg);
|
HTTP.request("http://127.0.0.1:8080/"+Net.instance.networkID,msg);
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user