Skip to content

Commit d9e266f

Browse files
committed
fix(presentation): Apply buggyfill only on browser
1 parent f50ad42 commit d9e266f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

containers/PresentationContainer.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import logo from "../assets/colored-logo.svg";
88
import styles from "./presentation.scss";
99
import root from "window-or-global";
1010

11-
require("viewport-units-buggyfill").init();
11+
if (root.location) {
12+
require("viewport-units-buggyfill").init();
13+
}
1214

1315
class PresentationContainer extends React.Component {
1416
state = {

0 commit comments

Comments
 (0)