Skip to content

Commit f6ce4b8

Browse files
committed
moved windowOr global inside utils/index
1 parent 227798d commit f6ce4b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/utils/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ const _handler = (resolve, reject, err, resp) => {
1313
};
1414

1515

16+
// noinspection Eslint
17+
export const windowOrGlobal = (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
18+
1619
/**
1720
* Makes an objects keys it's values
1821
* @param object

0 commit comments

Comments
 (0)