diff --git a/classes/custom/pictures.js b/classes/custom/pictures.js index a821bbf..b42b183 100644 --- a/classes/custom/pictures.js +++ b/classes/custom/pictures.js @@ -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; + }); } diff --git a/package.json b/package.json index c4f3a4f..bec8188 100644 --- a/package.json +++ b/package.json @@ -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",