From d9bf1d1a91daaf4c369f189113c2519d1f693c65 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Thu, 13 Jul 2023 18:57:22 +0800 Subject: [PATCH] fix: website dictionary disable window.location --- src/iframeschemehandler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iframeschemehandler.cc b/src/iframeschemehandler.cc index eef0843b..ad15845a 100644 --- a/src/iframeschemehandler.cc +++ b/src/iframeschemehandler.cc @@ -74,7 +74,7 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob) // remove existed base tag articleString.remove( baseTag ); - articleString.replace( "window.location", "window.location1" ); + articleString.replace( "window.location", "window.location;_window_location" ); QRegularExpression headTag( R"()", QRegularExpression::CaseInsensitiveOption