fix: openb

This commit is contained in:
Kagura 2024-11-04 13:06:29 +08:00
parent b21b0384e1
commit ab5821a062

View file

@ -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)
}
}