diff --git a/src/main/kotlin/utils/OpenBrowser.kt b/src/main/kotlin/utils/OpenBrowser.kt index 1dd164f..5f1af6e 100644 --- a/src/main/kotlin/utils/OpenBrowser.kt +++ b/src/main/kotlin/utils/OpenBrowser.kt @@ -26,6 +26,11 @@ private fun openBrowser(uri: URI) { val content = StringSelection(uri.toString()) clipboard.setContents(content, null) } + } catch (_ : Exception){ + val clipboard = Toolkit.getDefaultToolkit().systemClipboard + val content = StringSelection(uri.toString()) + clipboard.setContents(content, null) + } }