Change debug signal handler
This commit is contained in:
parent
8fd82caf96
commit
6140d54b18
1 changed files with 2 additions and 2 deletions
|
@ -29,8 +29,8 @@ var count = enabled ? console.count : function(){};
|
|||
var profile = enabled ? console.profile : function(){};
|
||||
var exception = enabled ? console.exception : function(){};
|
||||
|
||||
Fernschreiber.DebugLog.enabledChanged.connect(function(isEnabled) {
|
||||
enabled = isEnabled;
|
||||
Fernschreiber.DebugLog.enabledChanged.connect(function() {
|
||||
enabled = Fernschreiber.DebugLog.enabled;
|
||||
if(isEnabled) {
|
||||
log = console.log;
|
||||
assert = console.assert;
|
||||
|
|
Loading…
Reference in a new issue