mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
update todo
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
async function preloadImages() {
|
||||
const dark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
const imagePromises = [];
|
||||
const num = Math.floor(Math.random() * 7) + 1;
|
||||
const num = Math.floor(Math.random() * 9) + 1;
|
||||
const imageUrls = [
|
||||
`file=html/logo-bg-${dark ? 'dark' : 'light'}.jpg`,
|
||||
`file=html/logo-bg-${num}.jpg`,
|
||||
|
||||
Reference in New Issue
Block a user