Open URLs without prefix

This commit is contained in:
Sebastian Wolf 2023-11-27 21:29:43 +01:00 committed by Denis Fedoseev
parent ec972d7edc
commit 1cddb7a766

View file

@ -447,11 +447,16 @@ 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) {
if (typeof videoData !== "undefined") {