intl-tel-input 18.3.2 → 18.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,12 +54,14 @@ const defaults = {
54
54
  showFlags: true,
55
55
  // use full screen popup instead of dropdown for country list
56
56
  useFullscreenPopup:
57
- // we cannot just test screen size as some smartphones/website meta tags will report desktop
58
- // resolutions
59
- // Note: to target Android Mobiles (and not Tablets), we must find 'Android' and 'Mobile'
60
- /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
61
- navigator.userAgent
62
- ) || window.innerWidth <= 500,
57
+ typeof navigator !== "undefined" && typeof window !== "undefined"
58
+ ? // we cannot just test screen size as some smartphones/website meta tags will report desktop
59
+ // resolutions
60
+ // Note: to target Android Mobiles (and not Tablets), we must find 'Android' and 'Mobile'
61
+ /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
62
+ navigator.userAgent
63
+ ) || window.innerWidth <= 500
64
+ : false,
63
65
  // specify the path to the libphonenumber script to enable validation/formatting
64
66
  utilsScript: ""
65
67
  };
@@ -1,6 +1,6 @@
1
1
  var input,
2
2
  iti,
3
- totalCountries = 243,
3
+ totalCountries = 244,
4
4
  totalDialCodes = 228,
5
5
  defaultPreferredCountries = 2;
6
6