sfc-utils 1.3.57 → 1.3.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/topper2.mjs +1 -0
- package/package.json +1 -1
package/components/topper2.mjs
CHANGED
|
@@ -190,6 +190,7 @@ const Topper2 = ({ settings, wcmData, lazyloader }) => {
|
|
|
190
190
|
|
|
191
191
|
const calculateFullScreenImageRatio = () => {
|
|
192
192
|
// ratio needs to account for height of nav bar which is 37px
|
|
193
|
+
if (typeof window === "undefined") return "56.25%"
|
|
193
194
|
const windowRatio = ((window.innerHeight-37) / window.innerWidth)*100;
|
|
194
195
|
let fullScreenRatio = "56.25%"; // defaults to 16/9;
|
|
195
196
|
|