Test fix.

This commit is contained in:
mike12345567 2024-10-24 18:08:49 +01:00
parent 68354cc50f
commit c33f331904
1 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,8 @@ export function isWebhookEndpoint(ctx: UserCtx) {
} }
export function isBrowser(ctx: UserCtx) { export function isBrowser(ctx: UserCtx) {
const browser = ctx.userAgent.browser const browser = ctx.userAgent?.browser
return browser !== "unknown" return browser && browser !== "unknown"
} }
export function isApiKey(ctx: UserCtx) { export function isApiKey(ctx: UserCtx) {