templates: define default console object in base.html
This commit is contained in:
parent
d928c5c05d
commit
406be17fc9
|
@ -7,6 +7,14 @@
|
|||
<link rel="stylesheet" href="{{ STATIC_URL }}jquery/css/jquery-ui.custom.css" />
|
||||
<link rel="stylesheet" href="{{ STATIC_URL }}ulx/css/ulx.css" />
|
||||
<title>{% block title %}User test{% endblock %}</title>
|
||||
<script>
|
||||
// define console
|
||||
if (!window.console) console = {};
|
||||
console.log = console.log || function(){};
|
||||
console.warn = console.warn || function(){};
|
||||
console.error = console.error || function(){};
|
||||
console.info = console.info || function(){};
|
||||
</script>
|
||||
{{ openid_meta }}
|
||||
{% block extra_scripts %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue