fix: website dictionary disable window.location

This commit is contained in:
YiFang Xiao 2023-07-13 18:57:22 +08:00
parent 499ac3c54c
commit d9bf1d1a91

View file

@ -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"(<head\b.*?>)",
QRegularExpression::CaseInsensitiveOption