remove js for featured game
This commit is contained in:
@@ -111,18 +111,6 @@ if (window.self === window.top) {
|
||||
}, 500);
|
||||
}
|
||||
|
||||
if (location.pathname === '/') {
|
||||
fetch('/assets/JSON/games.json')
|
||||
.then(res => res.json())
|
||||
.then(games => {
|
||||
const randomID = Math.floor(Math.random() * games.length);
|
||||
const game = games[randomID];
|
||||
|
||||
document.querySelector('.featuredimg').parentElement.href = `/play?id=${randomID}`
|
||||
document.querySelector('.featuredimg').src = game.image;
|
||||
}).catch(e => new PolarisError('Failed to load featured game'));
|
||||
}
|
||||
|
||||
const Polaris = { Settings, Games, Apps, WPM, PolarisError, registerLinks };
|
||||
|
||||
export default Polaris;
|
||||
+1
-1
@@ -12,4 +12,4 @@
|
||||
"dest": "index.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user