Skip to content

Commit

Permalink
fix: proper types for userAgent and vendor (#6361)
Browse files Browse the repository at this point in the history
## Summary

PR restoring proper types for `Navigator`.

When this code would be removed, VSCode takes me to definitions from TS,
which show it the same way:

![image](https://github.com/user-attachments/assets/c0a480d6-af3e-4ffb-831c-47f04060cb7c)


## Test plan
  • Loading branch information
WoLewicki committed Aug 1, 2024
1 parent 77530f7 commit 594479e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ enum Platform {

declare global {
interface Navigator {
userAgent?: string;
vendor?: string;
userAgent: string;
vendor: string;
}
}

0 comments on commit 594479e

Please sign in to comment.