Open lunny opened 3 years ago
Is there a error.message
when you click …
?
error { target: SharedWorker, isTrusted: true, srcElement: SharedWorker, currentTarget: SharedWorker, eventPhase: 2, bubbles: false, cancelable: false, returnValue: true, defaultPrevented: false, composed: false, … }
bubbles: false
cancelBubble: false
cancelable: false
composed: false
currentTarget: null
defaultPrevented: false
eventPhase: 0
explicitOriginalTarget: SharedWorker { port: MessagePort, onerror: null }
isTrusted: true
originalTarget: SharedWorker { port: MessagePort, onerror: null }
returnValue: true
srcElement: SharedWorker { port: MessagePort, onerror: null }
target: SharedWorker { port: MessagePort, onerror: null }
timeStamp: 3225
type: "error"
<get isTrusted()>: function isTrusted()
<prototype>: EventPrototype { composedPath: composedPath(), stopPropagation: stopPropagation(), stopImmediatePropagation: stopImmediatePropagation(), … }
ALT_MASK: 1
AT_TARGET: 2
BUBBLING_PHASE: 3
CAPTURING_PHASE: 1
CONTROL_MASK: 2
META_MASK: 8
NONE: 0
SHIFT_MASK: 4
bubbles:
cancelBubble:
cancelable:
composed:
composedPath: function composedPath()
constructor: function ()
currentTarget:
defaultPrevented:
eventPhase:
explicitOriginalTarget:
initEvent: function initEvent()
originalTarget:
preventDefault: function preventDefault()
returnValue:
srcElement:
stopImmediatePropagation: function stopImmediatePropagation()
stopPropagation: function stopPropagation()
target:
timeStamp:
type:
Symbol(Symbol.toStringTag): "Event"
<get bubbles()>: function bubbles()
<get cancelBubble()>: function cancelBubble()
<set cancelBubble()>: function cancelBubble()
<get cancelable()>: function cancelable()
<get composed()>: function composed()
<get currentTarget()>: function currentTarget()
<get defaultPrevented()>: function defaultPrevented()
<get eventPhase()>: function eventPhase()
<get explicitOriginalTarget()>: function explicitOriginalTarget()
<get originalTarget()>: function originalTarget()
<get returnValue()>: function returnValue()
<set returnValue()>: function returnValue()
<get srcElement()>: function srcElement()
<get target()>: function target()
<get timeStamp()>: function timeStamp()
<get type()>: function type()
<prototype>: Object { … }
Comes from https://github.com/go-gitea/gitea/blob/main/web_src/js/features/notification.js#L35 maybe, but it seems odd that error
would be just a string. That file and https://github.com/go-gitea/gitea/blob/main/web_src/js/features/notification.js needs to be refactored, it includes a lot of console.error
calls that do not actually log any helpful messages, just random bits of data.