From bbf562911a58b6b01f2a21bcd1d7f9f591561b0a Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Sun, 10 Jul 2022 12:55:27 +0800 Subject: [PATCH] opt: click audio link before the page has been loaded completely. --- weburlrequestinterceptor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weburlrequestinterceptor.cpp b/weburlrequestinterceptor.cpp index 48573288..5e190607 100644 --- a/weburlrequestinterceptor.cpp +++ b/weburlrequestinterceptor.cpp @@ -39,8 +39,8 @@ void WebUrlRequestInterceptor::interceptRequest( QWebEngineUrlRequestInfo &info) { return; } -// emit linkClicked( info.requestUrl() ); -// info.block(true); + emit linkClicked( info.requestUrl() ); + info.block(true); } //window.location=audio link