Linux-Test
This commit is contained in:
1 parent
e96142b762
commit
a6bfc81d47
1 file changed
+3
-3
@@ -11,9 +11,9 @@ actual fun openInBrowser(url: Url) {
|
||||
throw IllegalStateException("Desktop API not supported (cannot open browser automatically).")
|
||||
}
|
||||
val desktop = Desktop.getDesktop()
|
||||
if (!desktop.isSupported(Desktop.Action.BROWSE)) {
|
||||
throw IllegalStateException("BROWSE action not supported (cannot open browser automatically).")
|
||||
}
|
||||
// if (!desktop.isSupported(Desktop.Action.BROWSE)) {
|
||||
// throw IllegalStateException("BROWSE action not supported (cannot open browser automatically).")
|
||||
// }
|
||||
|
||||
desktop.browse(url.toURI())
|
||||
|
||||
|
||||
Reference in new issue
Block a user