mirror of
https://github.com/VERT-sh/VERT
synced 2026-04-25 17:15:10 +02:00
10 lines
203 B
TypeScript
10 lines
203 B
TypeScript
export const load = ({ url, request }) => {
|
|
const { pathname } = url;
|
|
const ua = request.headers.get("user-agent");
|
|
const isMobile = /mobile/i.test(ua || "");
|
|
return {
|
|
pathname,
|
|
isMobile,
|
|
};
|
|
};
|