浏览代码

Use Krom.loadUrl

Lubos Lenco 4 年之前
父节点
当前提交
6bc50916a9
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      Sources/arm/sys/File.hx

+ 8 - 0
Sources/arm/sys/File.hx

@@ -65,6 +65,14 @@ class File {
 		#end
 	}
 
+	public static function loadUrl(url: String) {
+		#if krom_windows // TODO: implement in Kinc
+		Krom.sysCommand('start "" "' + url + '"');
+		#else
+		Krom.loadUrl(url);
+		#end
+	}
+
 	public static function delete(path: String) {
 		Krom.sysCommand(cmd_del + ' "' + path + '"');
 	}