Allow ton:// links in webapps.
This commit is contained in:
@@ -1459,7 +1459,8 @@ bool WebViewInstance::botHandleLocalUri(QString uri, bool keepOpen) {
|
||||
if (Core::InternalPassportLink(local)) {
|
||||
return true;
|
||||
} else if (!local.startsWith(u"tg://"_q, Qt::CaseInsensitive)
|
||||
&& !local.startsWith(u"tonsite://"_q, Qt::CaseInsensitive)) {
|
||||
&& !local.startsWith(u"tonsite://"_q, Qt::CaseInsensitive)
|
||||
&& !local.startsWith(u"ton://"_q, Qt::CaseInsensitive)) {
|
||||
return false;
|
||||
}
|
||||
const auto bot = _bot;
|
||||
|
||||
Reference in New Issue
Block a user