sfili81 / error-report-widget
Error Report Widget - send email when error on browser console
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-widget
Requires
- yiisoft/yii2: ~2.0.0
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'