mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-07-26 12:08:15 +00:00
fix: version.json path for all non-English locales
Changed condition from lang === 'de' to lang === 'en' so that all non-English language subdirectories (fr, es, pt-BR, ru, de) correctly resolve version.json via ../version.json instead of only German.
This commit is contained in:
+1
-1
@@ -310,7 +310,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
const updateDynamicVersion = async () => {
|
||||
try {
|
||||
const versionPath = document.documentElement.lang === 'de' ? '../version.json' : 'version.json';
|
||||
const versionPath = document.documentElement.lang === 'en' ? 'version.json' : '../version.json';
|
||||
const response = await fetch(versionPath);
|
||||
if (!response.ok) return;
|
||||
const data = await response.json();
|
||||
|
||||
Reference in New Issue
Block a user