Skip to content

Commit

Permalink
Fixed an issue facebook#11853 - window.opera=null problem (facebook#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
alisherdavronov authored and yenshih committed Jan 6, 2018
1 parent c4e3a8c commit 2730d2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-dom/src/events/BeforeInputEventPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const useFallbackCompositionData =
function isPresto() {
const opera = window.opera;
return (
opera !== null &&
typeof opera === 'object' &&
typeof opera.version === 'function' &&
parseInt(opera.version(), 10) <= 12
Expand Down

0 comments on commit 2730d2b

Please sign in to comment.