Open URLs without prefix

This commit is contained in:
Sebastian Wolf 2023-11-27 21:29:43 +01:00
parent 61faf0f407
commit 8258867407
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

@ -447,10 +447,15 @@ function handleLink(link) {
handleTMeLink(link, tMePrefix);
} else if (link.indexOf(tMePrefixHttp) === 0) {
handleTMeLink(link, tMePrefixHttp);
} else {
Debug.log("Trying to open URL externally: " + link)
if (link.indexOf("://") === -1) {
Qt.openUrlExternally("https://" + link)
} else {
Qt.openUrlExternally(link);
}
}
}
}
function getVideoHeight(videoWidth, videoData) {