This commit is contained in:
2022-02-24 18:30:55 +03:00
parent 4e2f85b01d
commit 9cf705bacc
+3 -2
View File
@@ -57,8 +57,9 @@ __PluginManager__.register('loggerService', function(module, exports, require, g
function setObjectValue(log, depth, key, value, opClass, maxDepth = 3, openDepth = 1, isRoot = true) { function setObjectValue(log, depth, key, value, opClass, maxDepth = 3, openDepth = 1, isRoot = true) {
var rowChildNode, isObj = support.isObject(value), id = isObj?support.uniqueId():'', var rowChildNode, isObj = support.isObject(value), id = isObj?support.uniqueId():'',
skipValue = value === window || value === document, skipValue = value === window || value === document,
valueString = ((isObj && typeof value.toString !== 'function') || typeof value === 'symbol')?(typeof value):value, valueString = ((isObj && typeof value.toString !== 'function') || typeof value === 'symbol')?(typeof value):(Array.isArray(value)?'Array':value),
val = (isObj&&maxDepth&&!skipValue)?'<label class="logger-toggler" for="'+id+'">'+valueString+'</label>':valueString, inp, j, val = (isObj&&maxDepth&&!skipValue)?'<label class="logger-toggler" for="'+id+'">'+valueString+'</label>':valueString,
inp, j,
len = isObj?Object.keys(value).length:0; len = isObj?Object.keys(value).length:0;
if(!isRoot || (isRoot && !isObj)) { if(!isRoot || (isRoot && !isObj)) {