Skip to content

Commit 6088a57

Browse files
Merge pull request #82 from bitlogic/SBIT-459
Sbit 459 - agregado chequeo de acceso a objeto navigator para evitar errores en SSR
2 parents 2475b44 + 97e6bc2 commit 6088a57

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)