diff options
author | moisseev <moiseev@mezonplus.ru> | 2023-11-14 10:58:04 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2023-11-14 10:58:04 +0300 |
commit | 899f9957dfed93da4eab658fb06caddfb6136fd6 (patch) | |
tree | 25e297f355914e90ec2a2453760dfbbc5f6555ec | |
parent | 3e29be1422ae7e5303e2fda47ff93d1a458a9f75 (diff) | |
download | rspamd-899f9957dfed93da4eab658fb06caddfb6136fd6.tar.gz rspamd-899f9957dfed93da4eab658fb06caddfb6136fd6.zip |
[Minor] Remove obsolete code
ES6 is required now for WebUI anyway.
-rw-r--r-- | interface/js/app/config.js | 9 |
1 files changed, 0 insertions, 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"); |