Check if we are in a browser environment before trying to load the JS
This commit is contained in:
parent
eab5ba0800
commit
ced4c57f19
1 changed files with 3 additions and 1 deletions
|
@ -104,4 +104,6 @@ var castModule = (function () {
|
||||||
};
|
};
|
||||||
}());
|
}());
|
||||||
|
|
||||||
window.addEventListener('load', castModule.init, false);
|
if (typeof window === 'object') {
|
||||||
|
window.addEventListener('load', castModule.init, false);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue