Merge branch 'main' of github.com:monochrome-music/monochrome

This commit is contained in:
Samidy 2026-03-07 08:07:20 +03:00
commit f212001d9a
2 changed files with 13 additions and 2 deletions

View file

@ -1724,7 +1724,18 @@
<div class="modal-content">
<h3>Update Available</h3>
<p>A new version of Monochrome is available.</p>
<div id="desktop-update-notes" style="margin: 1rem 0; padding: 1rem; background: var(--background-secondary); border-radius: var(--radius); max-height: 200px; overflow-y: auto; font-size: 0.9rem;"></div>
<div
id="desktop-update-notes"
style="
margin: 1rem 0;
padding: 1rem;
background: var(--background-secondary);
border-radius: var(--radius);
max-height: 200px;
overflow-y: auto;
font-size: 0.9rem;
"
></div>
<div class="modal-actions">
<button id="desktop-update-cancel" class="btn-secondary">Later</button>
<button id="desktop-update-confirm" class="btn-primary">Update Now</button>

View file

@ -417,7 +417,7 @@ document.addEventListener('DOMContentLoaded', async () => {
try {
// my worker should detect a users OS and serve the right ver
const update = await updater.checkForUpdates('https://update.samidy.xyz/update.json');
if (update && update.available) {
const modal = document.getElementById('desktop-update-modal');
const notes = document.getElementById('desktop-update-notes');