1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

Fix white flashes

This commit is contained in:
Alva Snædís 2020-05-25 22:32:48 +02:00
parent 9d8a727f9f
commit 4ebeb509b7

View File

@ -81,6 +81,8 @@ WebPage::WebPage(QObject* parent)
, m_secureStatus(false)
{
QWebChannel *channel = new QWebChannel(this);
// Prevents white flashes.
setBackgroundColor(MainApplication::palette().color(QPalette::Window));
ExternalJsObject::setupWebChannel(channel, this);
setWebChannel(channel, SafeJsWorld);