chore(debug): release v1.2.7 with verbose update logging
This commit is contained in:
2
dist/bookmarklet-payload.js
vendored
2
dist/bookmarklet-payload.js
vendored
File diff suppressed because one or more lines are too long
2
dist/bookmarklet.txt
vendored
2
dist/bookmarklet.txt
vendored
File diff suppressed because one or more lines are too long
10
dist/install.html
vendored
10
dist/install.html
vendored
File diff suppressed because one or more lines are too long
9
dist/kantine-standalone.html
vendored
9
dist/kantine-standalone.html
vendored
@@ -1680,7 +1680,7 @@ body {
|
||||
<div class="brand">
|
||||
<span class="material-icons-round logo-icon">restaurant_menu</span>
|
||||
<div class="header-left">
|
||||
<h1>Kantinen Übersicht <small style="font-size: 0.6em; opacity: 0.7; font-weight: 400;">v1.2.6</small></h1>
|
||||
<h1>Kantinen Übersicht <small style="font-size: 0.6em; opacity: 0.7; font-weight: 400;">v1.2.7</small></h1>
|
||||
<div id="last-updated-subtitle" class="subtitle"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -3027,7 +3027,7 @@ body {
|
||||
|
||||
// === Version Check (periodic, every hour) ===
|
||||
async function checkForUpdates() {
|
||||
const currentVersion = 'v1.2.6';
|
||||
const currentVersion = 'v1.2.7';
|
||||
const versionUrl = 'https://raw.githubusercontent.com/TauNeutrino/kantine-overview/main/version.txt';
|
||||
const installerUrl = 'https://htmlpreview.github.io/?https://github.com/TauNeutrino/kantine-overview/blob/main/dist/install.html';
|
||||
|
||||
@@ -3035,9 +3035,12 @@ body {
|
||||
const resp = await fetch(versionUrl, { cache: 'no-cache' });
|
||||
if (!resp.ok) return;
|
||||
const remoteVersion = (await resp.text()).trim();
|
||||
|
||||
console.log(`[Kantine] Version Check: Local [${currentVersion}] vs Remote [${remoteVersion}]`);
|
||||
|
||||
if (!remoteVersion || remoteVersion === currentVersion) return;
|
||||
|
||||
console.log(`[Kantine] Update verfügbar: ${remoteVersion} (aktuell: ${currentVersion})`);
|
||||
console.log(`[Kantine] Update verfügbar: ${remoteVersion}`);
|
||||
|
||||
// Show 🆕 icon in header (only once)
|
||||
const headerTitle = document.querySelector('.header-left h1');
|
||||
|
||||
Reference in New Issue
Block a user