mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Update metadata.js
This commit is contained in:
parent
9083fa1f90
commit
66c7b917f4
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ export default async (request, context) => {
|
|||
const ua = request.headers.get("user-agent");
|
||||
let url = new URL(request.url);
|
||||
let path = url.pathname;
|
||||
let geo = context.geo.city + ", " + context.geo.subdivision.code + ", " + context.geo.country.code
|
||||
let geo = context.geo.city + ", " + context?.geo?.subdivision?.code + ", " + context?.geo?.country?.code
|
||||
|
||||
let uaArray = Deno.env.get("UA_ARRAY")?.split(",") || [];
|
||||
let uaMatch = uaArray.some(a => ua.indexOf(a) != -1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue