mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
fix: website dictionary disable window.location
This commit is contained in:
parent
499ac3c54c
commit
d9bf1d1a91
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue