From df78027f41bbee746e0bda970c5b88d113de80df Mon Sep 17 00:00:00 2001 From: Elnegren <114156013+asaura08@users.noreply.github.com> Date: Fri, 20 Feb 2026 20:47:32 +0100 Subject: [PATCH] fix: deprecated initHighlighting (#36938) * fix: remove read_only decorator from get_desktop_page get_desktop_page leads to a call to check_completions which calls save and thus with the read_only decorator calls save on the read replica * fix: Move write operation out of read only request * fix: deprecated initHighlighting Deprecated as of 10.6.0. initHighlighting() is deprecated. Use highlightAll() instead. --------- Co-authored-by: Apile Tyumre Co-authored-by: Ankush Menat --- frappe/website/js/website.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/website/js/website.js b/frappe/website/js/website.js index 6a8221f68a..a79f6ac5df 100644 --- a/frappe/website/js/website.js +++ b/frappe/website/js/website.js @@ -296,7 +296,7 @@ $.extend(frappe, { }, highlight_code_blocks: function () { - hljs.initHighlighting(); + hljs.highlightAll(); }, bind_filters: function () { // set in select