Closed Bug 973112 Opened 10 years ago Closed 10 years ago

Move JS error tracking snippet

Categories

(Webmaker Graveyard :: webmaker.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jon, Assigned: admix)

References

Details

(Whiteboard: [mentor=gvn][goodfirstbug])

Attachments

(1 file)

We have a inline script that should be moved to it's own file: https://github.com/mozilla/webmaker.org/blob/6993b1ced480d4758c884632c0600ff0445cd34c/views/layout.html#L23-L30

It might also be good to move away from using "window.onerror = ..." to "window.addEventListener('error', ...)"
Can you assign me to this one. thanks.
Assignee: nobody → admix.snurnikov
Status: NEW → ASSIGNED
Comment on attachment 8378554 [details]
Moved error tracker to a separate file, change 'onerror' to 'eventListener'

Need to add the `window.jsErrorDetected = true;` bit back
Attachment #8378554 - Flags: review?(jon) → review-
Added back 'window.jsErrorDetected = true;'.
PR https://github.com/mozilla/webmaker.org/pull/608
Attachment #8378554 - Flags: review- → review?(jon)
Attachment #8378554 - Flags: review?(jon) → review+
Commits pushed to master at https://github.com/mozilla/webmaker.org

https://github.com/mozilla/webmaker.org/commit/a21606f79b9e31e107dd2147704e1294cdc1fe97
[bug973112] - Moved error tracker to a separate file, change 'onerror' to 'eventListener'

[bug973112] - Modified eventListener

[bug973112] - Added 'window.jsErrorDetected = true;' back

https://github.com/mozilla/webmaker.org/commit/2d01f3ea3511e7d4070ce766ff25efa1f4d5b13a
Merge pull request #608 from admix/bug973112

[bug973112] - Moved error tracker to a separate file, change 'onerror' to 'eventListener'
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: