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