Commit d348e773 authored by Leo Iannacone's avatar Leo Iannacone

added debug function and setting

parent 273f4856
......@@ -22,6 +22,7 @@ config.web.preferences = {}
config.web.preferences.autoscroll = true
config.web.preferences.header = true
config.web.preferences.sidebar = true
config.web.preferences.debug = 3 // debug level - 0 means disabled
// DO NOT EDIT these ones
......
var socket = io.connect('//' + config.hostname );
var debug = function() {
if (arguments.length == 0) {
return
}
var level = 1
if (arguments.length > 1) {
level = arguments[0]
arguments[0] = "dubug (" + level + ") > "
}
if (level <= config.preferences.debug) {
console.log.apply(console, arguments)
}
}
new Preferences()
new Page_Generic().init(socket)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment