[evolution/wip/mcrha/webkit-jsc-api] EWebKitEditor: Write JavaScript console messages to stdout when developer mode is enabled



commit 03baff8e5c06dc47cf8387c0e4cc9f414148c977
Author: Milan Crha <mcrha redhat com>
Date:   Tue Mar 10 14:38:52 2020 +0100

    EWebKitEditor: Write JavaScript console messages to stdout when developer mode is enabled

 src/modules/webkit-editor/e-webkit-editor.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/modules/webkit-editor/e-webkit-editor.c b/src/modules/webkit-editor/e-webkit-editor.c
index 7721d57fc5..52aa42afa3 100644
--- a/src/modules/webkit-editor/e-webkit-editor.c
+++ b/src/modules/webkit-editor/e-webkit-editor.c
@@ -4041,6 +4041,7 @@ webkit_editor_constructed (GObject *object)
 
        web_settings = webkit_web_view_get_settings (web_view);
        webkit_settings_set_allow_file_access_from_file_urls (web_settings, TRUE);
+       webkit_settings_set_enable_write_console_messages_to_stdout (web_settings, 
e_util_get_webkit_developer_mode_enabled ());
        webkit_settings_set_enable_developer_extras (web_settings, e_util_get_webkit_developer_mode_enabled 
());
 
        settings = e_util_ref_settings ("org.gnome.evolution.mail");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]