templates: define default console object in base.html

This commit is contained in:
Benjamin Dauvergne 2013-12-12 15:31:19 +01:00
parent d928c5c05d
commit 406be17fc9
1 changed files with 8 additions and 0 deletions

View File

@ -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 %}