chore: fixes

This commit is contained in:
Cory Dransfeldt 2024-03-24 13:03:46 -07:00
parent 86a6b02e5f
commit 48e83d95f5
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -8,13 +8,13 @@ export default async (request, context) => {
const num = new URL(request['url']).searchParams.get('num')
const lang = decodeURIComponent(new URL(request['url']).searchParams.get('lang'))
const nav = decodeURIComponent(new URL(request['url']).searchParams.get('nav'))
const i = new URL(request['url']).searchParams.get('i')
const ig = new URL(request['url']).searchParams.get('ig')
const headers = {}
if (lang) headers['Accept-Language'] = lang;
if (nav) headers['User-Agent'] = nav;
let url;
if (i) return;
if (ig) return;
if (ns) {
const ids = getStore('ids')
if (!ids.get(id)) ids.set(id, '')