[epiphany] highlightjs: Use new highlightAll() function



commit 4a9dd63d3a06786833a35a1c70e958520ff27f83
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Tue May 4 22:10:10 2021 +0200

    highlightjs: Use new highlightAll() function
    
    CONSOLE LOG Deprecated as of 10.6.0. initHighlightingOnLoad() is deprecated.  Use highlightAll() instead.
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1501
    Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/959>

 embed/ephy-view-source-handler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/ephy-view-source-handler.c b/embed/ephy-view-source-handler.c
index 9c269490d..ab9574908 100644
--- a/embed/ephy-view-source-handler.c
+++ b/embed/ephy-view-source-handler.c
@@ -132,7 +132,7 @@ web_resource_data_cb (WebKitWebResource     *resource,
                           "<body class='hljs'>"
                           "  <script 
src='ephy-resource:///org/gnome/epiphany/highlightjs/highlight.js'></script>"
                           "  <script 
src='ephy-resource:///org/gnome/epiphany/highlightjs/highlightjs-line-numbers.js'></script>"
-                          "  <script>hljs.initHighlightingOnLoad();"
+                          "  <script>hljs.highlightAll();"
                           "          hljs.initLineNumbersOnLoad();</script>"
                           "  <pre><code class='html'>%s</code></pre>"
                           "</body>",


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