Skip to content

Commit

Permalink
Changed custom pictures to auto shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
petersem committed Feb 28, 2024
1 parent f5e91ec commit 68fa7de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion classes/custom/pictures.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ class Pictures {
}
pictures.push(pic);
});
return pictures;
// shuffle pictures array
pictures = pictures.sort((a, b) => 0.5 - Math.random());
// pictures.forEach(p => {
// console.log(p.url);

// });
// return pictures;

});
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "posterr",
"version": "1.17.7",
"version": "1.17.8",
"description": "A digital display for your media",
"main": "index.js",
"bin": "index.js",
Expand Down

0 comments on commit 68fa7de

Please sign in to comment.