1
0
Fork 0
mirror of https://github.com/Unkn0wnCat/KevinK.dev.js.git synced 2025-07-20 01:47:19 +02:00

Fix assets being redirected by redirector

This commit is contained in:
Kevin Kandlbinder 2020-12-23 02:17:51 +01:00
parent 0a667e5d23
commit 81ab62b154
4 changed files with 113 additions and 1 deletions

View file

@ -13,6 +13,10 @@ async function checkLang({ request }) {
let requestURL = new URL(url);
if(requestURL.pathname.startsWith("/assets") || requestURL.pathname.startsWith("/icons") || requestURL.pathname.startsWith("/manifest.webmanifest")) {
return;
}
for (let i = 0; i < config.languages.length; i++) {
const language = config.languages[i];