mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
Remove outdated WebInspector close button removal
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
973a533fea
commit
e4a8ad5e01
|
@ -103,15 +103,6 @@ void WebInspector::unregisterView(QWebEngineView *view)
|
|||
|
||||
void WebInspector::loadFinished()
|
||||
{
|
||||
// Show close button only when docked
|
||||
if (!isWindow()) {
|
||||
page()->runJavaScript(QL1S("var button = Components.dockController._closeButton;"
|
||||
"button.setVisible(true);"
|
||||
"button.element.onmouseup = function() {"
|
||||
" window.close();"
|
||||
"};"));
|
||||
}
|
||||
|
||||
// Inspect element
|
||||
if (m_inspectElement) {
|
||||
m_view->triggerPageAction(QWebEnginePage::InspectElement);
|
||||
|
|
Loading…
Reference in New Issue
Block a user