1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01: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);