While I was correcting some js syntax to avoid minimization problems, I noticed this block in a third-party js library:
if ('\u0041' == 'A') { var u = n.userAgent; if (u.indexOf('Safari') == -1) { [...] } }
There is no other condition in the block and basically checks the type and version of the browser ... in any case, I donβt understand why it should compare the unicode code for the character βAβ and, well, βAβ, the character!: /
Has anyone encountered this condition before? Am I missing something or is it useless?
source share