Skip to content

Commit

Permalink
WON-127 Add user agent and screen size to feedback submission
Browse files Browse the repository at this point in the history
  • Loading branch information
remyvdwereld committed Feb 18, 2025
1 parent aa6bd55 commit 7f59872
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/__generated__/apiSchema.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/app/components/Feedback/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7f59872

Please sign in to comment.