diff --git a/src/__generated__/apiSchema.d.ts b/src/__generated__/apiSchema.d.ts index 2cdf24096..aff39d76d 100644 --- a/src/__generated__/apiSchema.d.ts +++ b/src/__generated__/apiSchema.d.ts @@ -487,6 +487,8 @@ declare namespace Components { export interface Feedback { feedback: string; url: string; + user_agent?: string; + screen?: string; } export interface Fine { identificatienummer: string; diff --git a/src/app/components/Feedback/index.tsx b/src/app/components/Feedback/index.tsx index 56dc14ea8..d3cb39f8d 100644 --- a/src/app/components/Feedback/index.tsx +++ b/src/app/components/Feedback/index.tsx @@ -40,7 +40,9 @@ const Feedback: React.FC = () => { setLoading(true) execPost({ feedback, - url: window.location.href + url: window.location.href, + user_agent: navigator.userAgent, + screen: `${ window.innerWidth }x${ window.innerHeight }` }) .then((e) => { if ((e as { status: number })?.status === 200) {