Change debug signal handler

This commit is contained in:
John Gibbon 2020-11-23 00:13:58 +01:00
parent 8fd82caf96
commit 6140d54b18

View file

@ -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;