mirror of
https://github.com/JuLi0n21/homepage.git
synced 2026-04-19 23:30:06 +00:00
fix(): Fix type on fetch
patch(): Squash commit
This commit is contained in:
@@ -53,7 +53,7 @@ let shuffeled = [
|
|||||||
const response = await fetch('https://fshare.kami.boo/api/server/folder/cmm9jbqvt00025omwu5cnpw9i')
|
const response = await fetch('https://fshare.kami.boo/api/server/folder/cmm9jbqvt00025omwu5cnpw9i')
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
const files = data.files.map(f => `https://fshare.kami.boo/raw${f.url.substring(2)}`).sort(() => Math.random() - .5);
|
const files = data.files.map((f: Response) => `https://fshare.kami.boo/raw${f.url.substring(2)}`).sort(() => Math.random() - .5);
|
||||||
const middle = Math.round(files.length / 2);
|
const middle = Math.round(files.length / 2);
|
||||||
shuffeled = files.slice(0,middle);
|
shuffeled = files.slice(0,middle);
|
||||||
images = files.slice(middle);
|
images = files.slice(middle);
|
||||||
|
|||||||
Reference in New Issue
Block a user