@jeniex/utils 1.0.5 → 1.0.6
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.
- package/browser/index.cjs +2 -1
- package/browser/index.js +2 -1
- package/package.json +1 -1
package/browser/index.cjs
CHANGED
|
@@ -41,8 +41,9 @@ async function sleep(milliSeconds) {
|
|
|
41
41
|
let infoObject;
|
|
42
42
|
if (typeof GM !== 'undefined') {
|
|
43
43
|
infoObject = GM.info;
|
|
44
|
+
// eslint-disable-next-line unicorn/no-negated-condition
|
|
44
45
|
}
|
|
45
|
-
else if (typeof GM_info
|
|
46
|
+
else if (typeof GM_info !== 'undefined') {
|
|
46
47
|
infoObject = GM_info;
|
|
47
48
|
}
|
|
48
49
|
else {
|
package/browser/index.js
CHANGED
|
@@ -39,8 +39,9 @@ async function sleep(milliSeconds) {
|
|
|
39
39
|
let infoObject;
|
|
40
40
|
if (typeof GM !== 'undefined') {
|
|
41
41
|
infoObject = GM.info;
|
|
42
|
+
// eslint-disable-next-line unicorn/no-negated-condition
|
|
42
43
|
}
|
|
43
|
-
else if (typeof GM_info
|
|
44
|
+
else if (typeof GM_info !== 'undefined') {
|
|
44
45
|
infoObject = GM_info;
|
|
45
46
|
}
|
|
46
47
|
else {
|