mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +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:
parent
b87ccf714c
commit
a154ef5480
@ -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);
|
||||
}
|
||||
|
||||
})();
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user