Browse Source

Added missing debug function.

pull/28/head
Simon Eisenmann 11 years ago
parent
commit
60149fd084
  1. 3
      static/js/main.js

3
static/js/main.js

@ -120,7 +120,7 @@ require.config({ @@ -120,7 +120,7 @@ require.config({
(function() {
var debugDefault = window.location.href.match(/(\?|&)debug($|&|=)/);
// Overwrite console to not log stuff per default.
// Overwrite console to not log stuff per default.
// Write debug(true) in console to enable or start with ?debug parameter.
window.consoleBackup = window.console;
window.debug = function(flag) {
@ -130,6 +130,7 @@ require.config({ @@ -130,6 +130,7 @@ require.config({
info: function() {},
warn: function() {},
error: function() {},
debug: function() {},
trace: function() {}
}
} else {

Loading…
Cancel
Save