Open URLs without prefix
This commit is contained in:
parent
61faf0f407
commit
8258867407
1 changed files with 6 additions and 1 deletions
|
@ -447,11 +447,16 @@ function handleLink(link) {
|
||||||
handleTMeLink(link, tMePrefix);
|
handleTMeLink(link, tMePrefix);
|
||||||
} else if (link.indexOf(tMePrefixHttp) === 0) {
|
} else if (link.indexOf(tMePrefixHttp) === 0) {
|
||||||
handleTMeLink(link, tMePrefixHttp);
|
handleTMeLink(link, tMePrefixHttp);
|
||||||
|
} else {
|
||||||
|
Debug.log("Trying to open URL externally: " + link)
|
||||||
|
if (link.indexOf("://") === -1) {
|
||||||
|
Qt.openUrlExternally("https://" + link)
|
||||||
} else {
|
} else {
|
||||||
Qt.openUrlExternally(link);
|
Qt.openUrlExternally(link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function getVideoHeight(videoWidth, videoData) {
|
function getVideoHeight(videoWidth, videoData) {
|
||||||
if (typeof videoData !== "undefined") {
|
if (typeof videoData !== "undefined") {
|
||||||
|
|
Loading…
Reference in a new issue