style: auto-fix linting issues
This commit is contained in:
parent
38dd6f8220
commit
346e4b2861
2 changed files with 13 additions and 2 deletions
13
index.html
13
index.html
|
|
@ -1724,7 +1724,18 @@
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<h3>Update Available</h3>
|
<h3>Update Available</h3>
|
||||||
<p>A new version of Monochrome is available.</p>
|
<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">
|
<div class="modal-actions">
|
||||||
<button id="desktop-update-cancel" class="btn-secondary">Later</button>
|
<button id="desktop-update-cancel" class="btn-secondary">Later</button>
|
||||||
<button id="desktop-update-confirm" class="btn-primary">Update Now</button>
|
<button id="desktop-update-confirm" class="btn-primary">Update Now</button>
|
||||||
|
|
|
||||||
|
|
@ -417,7 +417,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
try {
|
try {
|
||||||
// my worker should detect a users OS and serve the right ver
|
// my worker should detect a users OS and serve the right ver
|
||||||
const update = await updater.checkForUpdates('https://update.samidy.xyz/update.json');
|
const update = await updater.checkForUpdates('https://update.samidy.xyz/update.json');
|
||||||
|
|
||||||
if (update && update.available) {
|
if (update && update.available) {
|
||||||
const modal = document.getElementById('desktop-update-modal');
|
const modal = document.getElementById('desktop-update-modal');
|
||||||
const notes = document.getElementById('desktop-update-notes');
|
const notes = document.getElementById('desktop-update-notes');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue