gm-util 5.12.8 → 5.12.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/isZoom2.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-util",
3
- "version": "5.12.8",
3
+ "version": "5.12.9",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/isZoom2.js CHANGED
@@ -110,7 +110,8 @@ export default function isZoom2() {
110
110
  }
111
111
 
112
112
  function detectZoom() {
113
- return detectZoomFunc[getBrowser() || "chrome"]();
113
+ if (!getBrowser()) return false;
114
+ return detectZoomFunc[getBrowser()]();
114
115
  }
115
116
 
116
117
  function iszoom(e) {