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 profile = enabled ? console.profile : function(){};
|
||||||
var exception = enabled ? console.exception : function(){};
|
var exception = enabled ? console.exception : function(){};
|
||||||
|
|
||||||
Fernschreiber.DebugLog.enabledChanged.connect(function(isEnabled) {
|
Fernschreiber.DebugLog.enabledChanged.connect(function() {
|
||||||
enabled = isEnabled;
|
enabled = Fernschreiber.DebugLog.enabled;
|
||||||
if(isEnabled) {
|
if(isEnabled) {
|
||||||
log = console.log;
|
log = console.log;
|
||||||
assert = console.assert;
|
assert = console.assert;
|
||||||
|
|
Loading…
Reference in a new issue