mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 10:05:41 -05:00
18 lines
314 B
Haxe
18 lines
314 B
Haxe
package funkin.util;
|
|
|
|
class WindowUtil
|
|
{
|
|
public static function openURL(targetUrl:String)
|
|
{
|
|
#if CAN_OPEN_LINKS
|
|
#if linux
|
|
// Sys.command('/usr/bin/xdg-open', [, "&"]);
|
|
Sys.command('/usr/bin/xdg-open', [targetUrl, "&"]);
|
|
#else
|
|
FlxG.openURL(targetUrl);
|
|
#end
|
|
#else
|
|
trace('Cannot open')
|
|
#end
|
|
}
|
|
}
|