sfili81/error-report-widget

Error Report Widget - send email when error on browser console

V1.02 2025-04-11 09:28 UTC

This package is auto-updated.

Last update: 2025-04-14 07:42:08 UTC


README

This widget detects javascript errors in the browser console and sends them via email

The preferred way to install this extension is through composer. Either run

composer require sfili81/error-report-widget

or add

"sfili81/error-report-widget": "*"

to your composer.json

Usage

Once the extension is installed, simply use it in your code by:

use sfili81\ErrorReportWidget\ErrorReportWidget;

and then insert the code before all other javascript files

<?= ErrorReportWidget::widget() ?>

Email Address Setting

To set an email address to send the error report to, set a pair like this in the params.php file:

'supportEmail' => 'yourEmailAddress@mail.com'