Skip to content

Commit

Permalink
fix: fix match error when navigator.product does not exist
Browse files Browse the repository at this point in the history
`navigator.product` is deprecated and does not exist in some env, breaking `navigator.product.match`
  • Loading branch information
gera2ld authored and iamcal committed Nov 13, 2023
1 parent f2b60c4 commit 9cfeacb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/emoji.js.template
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@
}
}
}
if (navigator.product.match(/ReactNative/i)){
if (/ReactNative/i.test(navigator.product)){
self.replace_mode = 'unified';
return;
}
Expand Down

0 comments on commit 9cfeacb

Please sign in to comment.