refactor: remove version update script and related version handling code

This commit is contained in:
Sebastian Espei
2026-03-30 01:30:54 +02:00
parent a617279c2d
commit 2bdacb7507
4 changed files with 0 additions and 88 deletions

View File

@@ -20,11 +20,6 @@ if (__SIMPLE_MODE__) {
}
});
const versionElement = document.getElementById('app-version-simple');
if (versionElement) {
versionElement.textContent = APP_VERSION;
}
const langContainer = document.getElementById('simple-mode-lang-switcher');
if (langContainer) {
const switcher = createLanguageSwitcher();

View File

@@ -1,18 +0,0 @@
import packageJson from '../package.json';
export const APP_VERSION = packageJson.version;
export function injectVersion() {
const versionElements = document.querySelectorAll('#app-version, #app-version-simple');
versionElements.forEach((element) => {
element.textContent = APP_VERSION;
});
}
if (typeof document !== 'undefined') {
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', injectVersion);
} else {
injectVersion();
}
}