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 9b1359c commit 97e6bc2Copy full SHA for 97e6bc2
src/components/videoBackground/VideoBackground.js
@@ -5,6 +5,7 @@ import PropTypes from "prop-types"
5
import { GatsbyImage, getImage } from "gatsby-plugin-image"
6
7
function getIOSVersion() {
8
+ if (typeof window === "undefined" || typeof navigator === "undefined") { return null; }
9
const userAgent = navigator.userAgent;
10
11
// Check if it's an iOS device
0 commit comments