mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Ensure availability of window.Galaxy variable
This commit is contained in:
@@ -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 ||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user