fix: use htmlpreview.github.io for update link (v1.0.3)

This commit is contained in:
2026-02-13 11:49:51 +01:00
parent 18c4961402
commit 71cb2e8475
6 changed files with 14 additions and 12 deletions

View File

@@ -1276,7 +1276,8 @@
async function checkForUpdates() {
const CurrentVersion = '{{VERSION}}'; // Injected by build script
const VersionUrl = 'https://raw.githubusercontent.com/TauNeutrino/kantine-overview/main/version.txt';
const InstallerUrl = 'https://github.com/TauNeutrino/kantine-overview/raw/main/dist/install.html';
// Use htmlpreview.github.io to render the HTML directly in browser
const InstallerUrl = 'https://htmlpreview.github.io/?https://github.com/TauNeutrino/kantine-overview/blob/main/dist/install.html';
console.log(`[Kantine] Checking for updates... (Current: ${CurrentVersion})`);