diff --git a/qml/js/debug.js b/qml/js/debug.js index 8dd523a..bcdd374 100644 --- a/qml/js/debug.js +++ b/qml/js/debug.js @@ -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;