mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Disable log collapse for objects
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user