logging: add Util.get_logging(), canvas clearing.
Only clear canvas if log level is not debug instead of using '#__debug__' in the URL.
This commit is contained in:
+1
-1
@@ -366,7 +366,7 @@ updateState = function(state, statusMsg) {
|
||||
|
||||
if (canvas && canvas.getContext()) {
|
||||
canvas.stop();
|
||||
if (! /__debug__$/i.test(document.location.href)) {
|
||||
if (Util.get_logging() !== 'debug') {
|
||||
canvas.clear();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user