Test fix.
This commit is contained in:
parent
68354cc50f
commit
c33f331904
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue