Check if we are in a browser environment before trying to load the JS

This commit is contained in:
Pierre Rudloff 2017-05-22 15:01:18 +02:00
parent eab5ba0800
commit ced4c57f19

View file

@ -104,4 +104,6 @@ var castModule = (function () {
}; };
}()); }());
if (typeof window === 'object') {
window.addEventListener('load', castModule.init, false); window.addEventListener('load', castModule.init, false);
}