Browse Source

Use Krom.loadUrl

Lubos Lenco 4 years ago
parent
commit
6bc50916a9
1 changed files with 8 additions and 0 deletions
  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 + '"');
 	}