@gem-sdk/core 2.0.0-dev.464 → 2.0.0-dev.468

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.
@@ -3,7 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  function isSafari() {
6
- return navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1;
6
+ if (typeof window !== 'undefined' && window.navigator) {
7
+ return window.navigator.userAgent.indexOf('Safari') !== -1 && window.navigator.userAgent.indexOf('Chrome') === -1;
8
+ }
9
+ return false;
7
10
  }
8
11
 
9
12
  exports.default = isSafari;
@@ -1,5 +1,8 @@
1
1
  function isSafari() {
2
- return navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1;
2
+ if (typeof window !== 'undefined' && window.navigator) {
3
+ return window.navigator.userAgent.indexOf('Safari') !== -1 && window.navigator.userAgent.indexOf('Chrome') === -1;
4
+ }
5
+ return false;
3
6
  }
4
7
 
5
8
  export { isSafari as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "2.0.0-dev.464",
3
+ "version": "2.0.0-dev.468",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",