mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Use navigation cancel in Webview.
This commit is contained in:
@@ -152,10 +152,12 @@ void GetPaymentForm(not_null<const HistoryItem*> msg) {
|
||||
});
|
||||
|
||||
webview->setNavigationHandler([=](const QString &uri) {
|
||||
if (Core::TryConvertUrlToLocal(uri) != uri) {
|
||||
window->deleteLater();
|
||||
App::wnd()->activate();
|
||||
if (Core::TryConvertUrlToLocal(uri) == uri) {
|
||||
return true;
|
||||
}
|
||||
window->deleteLater();
|
||||
App::wnd()->activate();
|
||||
return false;
|
||||
});
|
||||
|
||||
webview->init(R"(
|
||||
|
||||
+1
-1
Submodule Telegram/lib_webview updated: 3f004da92d...7491d16023
Reference in New Issue
Block a user