Merge pull request #617 from Skillkiller/fix-version-inline

Embed static app version in HTML via Vite at build time
This commit is contained in:
Alam authored and GitHub committed 2026-04-04 13:24:07 +05:30
commit 23602bc8db
137 files changed
+11 -230

No files matched your search

-6
View File
@@ -1,4 +1,3 @@
import { APP_VERSION } from '../../version.js';
import { createLanguageSwitcher } from '../i18n/language-switcher.js';
// Handle simple mode adjustments for tool pages
@@ -20,11 +19,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();