mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Don't use QWebEngineScript::ApplicationWorld with Qt 5.7
It doesn't work because js on qupzilla: pages runs in MainWorld. Closes #2015
This commit is contained in:
parent
198bfae88f
commit
f0e2b938ba
@ -39,7 +39,8 @@ class QUPZILLA_EXPORT WebPage : public QWebEnginePage
|
||||
public:
|
||||
enum JsWorld {
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5,7,0)
|
||||
SafeJsWorld = QWebEngineScript::ApplicationWorld
|
||||
// SafeJsWorld = QWebEngineScript::ApplicationWorld
|
||||
SafeJsWorld = QWebEngineScript::MainWorld
|
||||
#else
|
||||
SafeJsWorld = QWebEngineScript::MainWorld
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user