1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

fix context menu on falkon:speeddial

Summary: Function addSpeedDial and others are not in scope so they didn't worked when called via javascript. So, I have removed the anonymous function which is wrapping those functions.

Reviewers: drosca

Reviewed By: drosca

Subscribers: falkon

Tags: #falkon

Differential Revision: https://phabricator.kde.org/D19564
This commit is contained in:
Anmol Gautam 2019-03-06 17:53:41 +05:30
parent b87ccf714c
commit a154ef5480
2 changed files with 3 additions and 7 deletions

View File

@ -4,8 +4,6 @@
// @include falkon:speeddial
// ==/UserScript==
(function() {
var scriptData = {};
var editingId = -1;
var ignoreNextChanged = false;
@ -498,5 +496,3 @@ if (window._falkon_external) {
} else {
document.addEventListener("_falkon_external_created", init);
}
})();

View File

@ -945,17 +945,17 @@ void WebView::createSearchEngine()
void WebView::addSpeedDial()
{
page()->runJavaScript("addSpeedDial()");
page()->runJavaScript("addSpeedDial()", WebPage::SafeJsWorld);
}
void WebView::configureSpeedDial()
{
page()->runJavaScript("configureSpeedDial()");
page()->runJavaScript("configureSpeedDial()", WebPage::SafeJsWorld);
}
void WebView::reloadAllSpeedDials()
{
page()->runJavaScript("reloadAll()");
page()->runJavaScript("reloadAll()", WebPage::SafeJsWorld);
}
void WebView::toggleMediaPause()