Disable log collapse for objects

This commit is contained in:
redhoodsu
2019-06-17 16:31:12 +08:00
parent d82f5ba82d
commit 4dafbe50cb
2 changed files with 6 additions and 2 deletions

View File

@@ -212,7 +212,9 @@ export default class Logger extends Emitter {
if (
log.type !== 'html' &&
lastLog.type === log.type &&
lastLog.value === log.value
lastLog.value === log.value &&
!log.src &&
!log.args
) {
let $container = $el.find(`div[data-id="${lastLog.id}"]`)
if ($container.length > 0) {

View File

@@ -98,7 +98,9 @@ export default class Network extends Tool {
if (this._origOpen) winXhrProto.open = this._origOpen
if (this._origSend) winXhrProto.send = this._origSend
if (this._origSetRequestHeader) winXhrProto.setRequestHeader = this._origSetRequestHeader
if (this._origSetRequestHeader) {
winXhrProto.setRequestHeader = this._origSetRequestHeader
}
}
overrideFetch() {
if (!this._isFetchSupported) return