Revision history of "MediaWiki:Gadget-ShowJavascriptErrors.js"

Jump to navigation Jump to search

Diff selection: Mark the radio boxes of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

  • curprev 18:04, 2 February 2022Tachyony talk contribs 817 bytes +817 Created page with "// This only shows alerts for things after this handler is installed of course. // Because this is a gadget, error reporting can thus be inconsistent. var originalErrorHandler = window.onerror || null; // Column and error args are optional window.onerror = function ( message, url, line, colomn, error ) { var $msg = $( '<p>' ); if ( url ) { $( '<span>' ) .text( url + ' at line ' + line + ': ' ) .appendTo( $msg ); } $( '<span>' ) .text( message ) .appendTo(..."