We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feaa2cc commit 031885fCopy full SHA for 031885f
packages/image/src/image-viewer.vue
@@ -66,7 +66,7 @@ const Mode = {
66
}
67
};
68
69
-const isFirefox = !!window.navigator.userAgent.match(/firefox/i);
+const isFirefox = typeof window !== 'undefined' && !!window.navigator.userAgent.match(/firefox/i);
70
const mousewheelEventName = isFirefox ? 'DOMMouseScroll' : 'mousewheel';
71
72
export default {
0 commit comments