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