ui: Linting & Formatting scripts (#26819)
This commit is contained in:
@@ -18,13 +18,16 @@ async function loadVersion() {
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
version = 'dev';
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const res = await fetch(`${base}/_app/version.json`, { cache: 'no-store' });
|
||||
|
||||
if (res.ok) {
|
||||
const data = await res.json();
|
||||
|
||||
version = data.version ?? '';
|
||||
}
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user