mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
UI: Add the --disable-scripting option to disable scripting by default
This commit is contained in:
committed by
Andreas Kling
parent
256b56dde8
commit
7c953552b7
@@ -551,7 +551,7 @@ BrowserWindow::BrowserWindow(Vector<URL::URL> const& initial_urls, IsPopupWindow
|
||||
|
||||
m_enable_scripting_action = new QAction("Enable Scripting", this);
|
||||
m_enable_scripting_action->setCheckable(true);
|
||||
m_enable_scripting_action->setChecked(true);
|
||||
m_enable_scripting_action->setChecked(WebView::Application::chrome_options().disable_scripting == WebView::DisableScripting::No);
|
||||
debug_menu->addAction(m_enable_scripting_action);
|
||||
QObject::connect(m_enable_scripting_action, &QAction::triggered, this, [this] {
|
||||
bool state = m_enable_scripting_action->isChecked();
|
||||
|
||||
Reference in New Issue
Block a user