Make translation JSON files load from relative path instead of absolute

This commit is contained in:
Sovenok-Hacker 2024-03-29 22:17:27 +03:00
parent 17a2ec862b
commit 52d90f72c3
1 changed files with 1 additions and 1 deletions

View File

@ -11247,7 +11247,7 @@ else if (settings.lang && settings.lang !== "en") {
if (langCode) {
try {
var Httpreq = new XMLHttpRequest();
Httpreq.open("GET","https://sandboxels.r74n.com/lang/"+langCode+".json",false);
Httpreq.open("GET","/lang/"+langCode+".json",false);
Httpreq.send(null);
lang = JSON.parse(Httpreq.responseText);
if (lang["#lang.font"]) {