ご主人様
Avril 4 years ago
parent 91ae919ce1
commit f542f7fcd2
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -31,7 +31,6 @@
onMount(async () => { onMount(async () => {
const file_lists = await fetch_things(); const file_lists = await fetch_things();
console.log(file_lists);
const thumbs_resolved = {}; const thumbs_resolved = {};
@ -42,7 +41,6 @@
file_list = []; file_list = [];
console.log("uhh");
// Loop backwards efficiently. // Loop backwards efficiently.
for (let i = 0; i < file_lists.file.length; i++) { for (let i = 0; i < file_lists.file.length; i++) {
const file = file_lists.file[i]; const file = file_lists.file[i];
@ -56,8 +54,7 @@
file_list.push(file); file_list.push(file);
} }
} }
file_list= file_list.reverse(); thumb_list = thumb_list.reverse();
console.log({file: file_list, thumb: thumb_list});
}); });
function open_lightbox(i) { function open_lightbox(i) {

Loading…
Cancel
Save