Skip to content

Commit c6df6da

Browse files
Update index.js
1 parent 4625aca commit c6df6da

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

js/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6690,7 +6690,7 @@ async function processWallpaperFiles(files) {
66906690
let processedCount = 0;
66916691

66926692
for (let file of files) {
6693-
// --- NEW: Handle .guraatmos files ---
6693+
// --- Handle .guraatmos files ---
66946694
if (file.name.endsWith('.guraatmos')) {
66956695
const text = await file.text();
66966696
let data;
@@ -6713,12 +6713,7 @@ async function processWallpaperFiles(files) {
67136713

67146714
let dominantColor = null;
67156715
let firstFrame = null;
6716-
6717-
// Generate first frame if it's a video (and not provided in export, though export usually doesn't generate fresh frames on fly)
6718-
// For simplicity, we assume the export is an image or we handle video normally.
6719-
// If the exported file was a video, 'imageBlob' is that video file.
67206716

6721-
let firstFrame = null;
67226717
if (data.wallpaperType.startsWith('image/gif') || data.wallpaperType.startsWith('image/webp')) {
67236718
// Try to regenerate first frame for animated types
67246719
try { firstFrame = await extractFirstFrame(imageBlob); } catch(e){}

0 commit comments

Comments
 (0)