react-time-picker
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -25,3 +25,3 @@ "use strict"; | ||
/* eslint-disable jsx-a11y/no-autofocus */ | ||
var isEdgeLegacy = navigator.userAgent.match(/ Edge\/1/); | ||
var isEdgeLegacy = typeof window !== 'undefined' && 'navigator' in window && navigator.userAgent.match(/ Edge\/1/); | ||
@@ -28,0 +28,0 @@ function onFocus(event) { |
{ | ||
"name": "react-time-picker", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "A time picker for your React app.", | ||
@@ -5,0 +5,0 @@ "main": "dist/entry.js", |
@@ -8,3 +8,7 @@ import React from 'react'; | ||
const isEdgeLegacy = navigator.userAgent.match(/ Edge\/1/); | ||
const isEdgeLegacy = ( | ||
typeof window !== 'undefined' | ||
&& 'navigator' in window | ||
&& navigator.userAgent.match(/ Edge\/1/) | ||
); | ||
@@ -11,0 +15,0 @@ function onFocus(event) { |
203421
5232