forked from MapComplete/MapComplete
9 lines
340 B
Bash
9 lines
340 B
Bash
|
#! /bin/bash
|
||
|
|
||
|
# Are you ready to feel really dirty?
|
||
|
# Pannellum is a direct import (not a module!) which uses window.pannellum = function...
|
||
|
# This breaks when importing this in nodeJS
|
||
|
# So, we patch it up...
|
||
|
echo "Fixing pannellum..."
|
||
|
sed -i 's/^window./if(typeof window !== "undefined")\n&/' "./node_modules/pannellum/build/pannellum.js"
|