RubyGems
npm
Organizations
Log in
Sign up
npm
merchi_sdk_js
Versions diffs
0.0.4 → 0.0.5
merchi_sdk_js 0.0.4 → 0.0.5
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
package/package.json
+1
-1
package/src/helpers.js
+1
-1
package/package.json
CHANGED
Viewed
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "merchi_sdk_js",
3
-
"version": "0.0.
4
",
3
+
"version": "0.0.
5
",
4
4
"type": "module",
5
5
"main": "src/merchi.js",
6
6
"module": "src/merchi.js",
package/src/helpers.js
CHANGED
Viewed
@@ -21,7 +21,7 @@ export function isUndefinedOrNull(x) {
21
21
}
22
22
23
23
export function getGlobal() {
24
-
if (isBrowser || isJsDom) {
24
+
if (
typeof window !== 'undefined' && (
isBrowser || isJsDom)
)
{
25
25
return window;
26
26
}
27
27
return global;