Ensure availability of window.Galaxy variable

This commit is contained in:
Aysam Guerler
2013-09-11 12:15:13 -04:00
parent be0f4bf6c8
commit 39b42f0191
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -81,6 +81,9 @@
if (window != window.top)
$('<link href="' + galaxy_config.root + 'static/style/galaxy.frame.masthead.css" rel="stylesheet">').appendTo('head');
// start a Galaxy namespace for objects created
window.Galaxy = window.Galaxy || {};
// console protection
window.console = window.console || {
log : function(){},
@@ -58,6 +58,9 @@
## make sure console exists
<script type="text/javascript">
// start a Galaxy namespace for objects created
window.Galaxy = window.Galaxy || {};
// console protection
window.console = window.console ||
{