summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2020-03-04 16:17:39 +0100
committerPeter Hofmann <scm@uninformativ.de>2020-03-04 16:17:39 +0100
commitc26e3a3cc4c2f77e651a1939f126a7d524ae6733 (patch)
tree5961d68e0f21ad881b3b7dccab636737b69ba160
parent5e36a19dee3d326a4814f9d6ff5322d7cc5d3743 (diff)
downloadlariza-c26e3a3cc4c2f77e651a1939f126a7d524ae6733.tar.gz
Enable WebKit's developer extras
-rw-r--r--CHANGES4
-rw-r--r--browser.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 6efe050..1109225 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
Release history for lariza
next
+ [Changed]
+ - "enable-developer-extras" is now always set to "TRUE". This enables
+ the Web Inspector.
+
[Added]
- User-supplied JavaScript files can be put into
~/.config/lariza/scripts.
diff --git a/browser.c b/browser.c
index aae2faf..1856b5b 100644
--- a/browser.c
+++ b/browser.c
@@ -216,6 +216,8 @@ client_new(const gchar *uri, WebKitWebView *related_wv, gboolean show)
if (enable_webgl)
webkit_settings_set_enable_webgl(webkit_web_view_get_settings(WEBKIT_WEB_VIEW(c->web_view)), TRUE);
+ webkit_settings_set_enable_developer_extras(webkit_web_view_get_settings(WEBKIT_WEB_VIEW(c->web_view)), TRUE);
+
c->location = gtk_entry_new();
g_signal_connect(G_OBJECT(c->location), "key-press-event",
G_CALLBACK(key_location), c);