From 3419e646cd93082b6454e46bb4e14e3321e2d43a Mon Sep 17 00:00:00 2001 From: Index Date: Thu, 25 Jul 2024 23:34:32 -0500 Subject: [PATCH] minor: delete (unused) places.js --- js/places/places.js | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 js/places/places.js diff --git a/js/places/places.js b/js/places/places.js deleted file mode 100644 index 0fd311b..0000000 --- a/js/places/places.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - THIS FILE DOES NOT RUN - IT WAS ADDED WHILE I CONSIDER WHETHER OR NOT TO ADD PINNED GAMES TO THE MAIN PLACES PAGE -*/ - -let Settings; -let PinnedGamesData; - -chrome.storage.sync.get(['PolyPlus_Settings', 'PolyPlus_PinnedGames'], function (result) { - Settings = result.PolyPlus_Settings || {}; - PinnedGamesData = result.PolyPlus_PinnedGames || []; - - if (Settings.PinnedGamesOn === true) { - } -}); - -function PinnedGames() { - for (let game of PinnedGamesData) { - fetch('https://api.polytoria.com/v1/places/' + game) - .then((response) => { - if (!response.ok) { - throw new Error('Network not ok'); - } - return response.json(); - }) - .then((data) => { - // epic - }) - .catch((error) => { - console.log(error); - }); - } -}