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.
2 parents 2475b44 + 97e6bc2 commit 6088a57Copy full SHA for 6088a57
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