Fix user settings on older clients

This commit is contained in:
ajp_anton
2026-08-21 23:20:24 +00:00
parent ef4cd3dc9c
commit 7eb62b156e
2 changed files with 10 additions and 3 deletions
@@ -7,9 +7,9 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<Version>0.2.3</Version>
<AssemblyVersion>0.2.3.0</AssemblyVersion>
<FileVersion>0.2.3.0</FileVersion>
<Version>0.2.4</Version>
<AssemblyVersion>0.2.4.0</AssemblyVersion>
<FileVersion>0.2.4.0</FileVersion>
<Authors>ajp_anton</Authors>
</PropertyGroup>
@@ -1,4 +1,11 @@
(() => {
if (!Element.prototype.replaceChildren) {
Element.prototype.replaceChildren = function () {
this.textContent = "";
for (let index = 0; index < arguments.length; index++) this.appendChild(arguments[index]);
};
}
const BASE_PATH = window.location.pathname.split("/web/")[0] || "";
const MENU_ID = "mlUserRulesMenuItem";
const USER_RULES_ROUTE = "multilang/user-rules";