Make sure global Galaxy object exists

This commit is contained in:
guerler
2015-08-26 13:29:38 -04:00
parent 9a44d78014
commit 11e6c9949e
+5 -3
View File
@@ -58,13 +58,15 @@
)}
<script type="text/javascript">
## global galaxy object
window.Galaxy = window.Galaxy || {};
## global configuration object
var galaxy_config =
{
window.galaxy_config = {
root: '${h.url_for( "/" )}'
};
// console protection
## console protection
window.console = window.console || {
log : function(){},
debug : function(){},