From 899f9957dfed93da4eab658fb06caddfb6136fd6 Mon Sep 17 00:00:00 2001 From: moisseev Date: Tue, 14 Nov 2023 10:58:04 +0300 Subject: [PATCH] [Minor] Remove obsolete code ES6 is required now for WebUI anyway. --- interface/js/app/config.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/interface/js/app/config.js b/interface/js/app/config.js index b3f4e5661..71a59a34b 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -159,15 +159,6 @@ define(["jquery", "codejar", "linenumbers", "prism"], }; let mode = "advanced"; - // CodeJar requires ES6 - if (!window.CodeJar || - // Required to restore cursor position - (typeof window.getSelection().setBaseAndExtent !== "function")) { - mode = "basic"; - $("input[name=editorMode][value='basic']").closest(".btn").button("toggle"); - $("input[name=editorMode][value='advanced']").closest(".btn").addClass("disabled").prop("title", "Not supported by web browser"); - } - // Modal form for maps $(document).on("click", "[data-bs-toggle=\"modal\"]", function () { var checked_server = rspamd.getSelector("selSrv"); -- 2.39.5