aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/OSUtils.kt7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/OSUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/OSUtils.kt
index 050937022..5aa6915bd 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/OSUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/OSUtils.kt
@@ -19,10 +19,11 @@ object OSUtils {
Desktop.getDesktop().browse(URI(url))
} catch (e: IOException) {
e.printStackTrace()
- LorenzUtils.error("[SkyHanni] Error opening website!")
+ LorenzUtils.error("[SkyHanni] Error opening website: $url!")
}
} else {
- LorenzUtils.warning("[SkyHanni] Web browser is not supported!")
+ copyToClipboard(url)
+ LorenzUtils.warning("[SkyHanni] Web browser is not supported! Copied url to clipboard.")
}
}
@@ -52,4 +53,4 @@ object OSUtils {
if (this.isKeyDown || this.isPressed) return true
return false
}
-} \ No newline at end of file
+}