minor: delete (unused) places.js
This commit is contained in:
parent
b95cf5d9df
commit
3419e646cd
1 changed files with 0 additions and 33 deletions
|
|
@ -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);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in a new issue