Merge branch 'main' of github.com:monochrome-music/monochrome
This commit is contained in:
commit
f212001d9a
2 changed files with 13 additions and 2 deletions
13
index.html
13
index.html
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue