Skip to content

Commit

Permalink
Merge pull request #194 from Auge19/fix_ie_detection
Browse files Browse the repository at this point in the history
fix wrong variable: ua => userAgent
  • Loading branch information
brianmhunt authored Jan 9, 2025
2 parents 60c3683 + b047a6a commit 53d0359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/ie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ieVersion = options.document && (function () {
if (!version) {
const userAgent = window.navigator.userAgent
// Detect IE 10/11
return ua.match(/MSIE ([^ ]+)/) || ua.match(/rv:([^ )]+)/)
return userAgent.match(/MSIE ([^ ]+)/) || userAgent.match(/rv:([^ )]+)/)
}
return version > 4 ? version : undefined
}())
Expand Down

0 comments on commit 53d0359

Please sign in to comment.