mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +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
|
// @include falkon:speeddial
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
(function() {
|
|
||||||
|
|
||||||
var scriptData = {};
|
var scriptData = {};
|
||||||
var editingId = -1;
|
var editingId = -1;
|
||||||
var ignoreNextChanged = false;
|
var ignoreNextChanged = false;
|
||||||
|
@ -498,5 +496,3 @@ if (window._falkon_external) {
|
||||||
} else {
|
} else {
|
||||||
document.addEventListener("_falkon_external_created", init);
|
document.addEventListener("_falkon_external_created", init);
|
||||||
}
|
}
|
||||||
|
|
||||||
})();
|
|
||||||
|
|
|
@ -945,17 +945,17 @@ void WebView::createSearchEngine()
|
||||||
|
|
||||||
void WebView::addSpeedDial()
|
void WebView::addSpeedDial()
|
||||||
{
|
{
|
||||||
page()->runJavaScript("addSpeedDial()");
|
page()->runJavaScript("addSpeedDial()", WebPage::SafeJsWorld);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebView::configureSpeedDial()
|
void WebView::configureSpeedDial()
|
||||||
{
|
{
|
||||||
page()->runJavaScript("configureSpeedDial()");
|
page()->runJavaScript("configureSpeedDial()", WebPage::SafeJsWorld);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebView::reloadAllSpeedDials()
|
void WebView::reloadAllSpeedDials()
|
||||||
{
|
{
|
||||||
page()->runJavaScript("reloadAll()");
|
page()->runJavaScript("reloadAll()", WebPage::SafeJsWorld);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebView::toggleMediaPause()
|
void WebView::toggleMediaPause()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user