Skip to content

Commit 97e6bc2

Browse files
committed
chequeo de acceso al objeto navigator agregado para evitar errores en el SSR
1 parent 9b1359c commit 97e6bc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/videoBackground/VideoBackground.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import PropTypes from "prop-types"
55
import { GatsbyImage, getImage } from "gatsby-plugin-image"
66

77
function getIOSVersion() {
8+
if (typeof window === "undefined" || typeof navigator === "undefined") { return null; }
89
const userAgent = navigator.userAgent;
910

1011
// Check if it's an iOS device

0 commit comments

Comments
 (0)