https://github.com/mhujer/javascripterrorhandlerbundle
Converts JavaScript errors to alerts, so you won't miss them if you don't have the browser console open.
https://github.com/mhujer/javascripterrorhandlerbundle
bundle javascript php symfony symfony-bundle
Last synced: 8 months ago
JSON representation
Converts JavaScript errors to alerts, so you won't miss them if you don't have the browser console open.
- Host: GitHub
- URL: https://github.com/mhujer/javascripterrorhandlerbundle
- Owner: mhujer
- License: mit
- Created: 2017-10-21T09:57:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-07T08:56:35.000Z (over 3 years ago)
- Last Synced: 2024-11-15T22:07:29.874Z (8 months ago)
- Topics: bundle, javascript, php, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JavaScriptErrorHandlerBundle
[](https://travis-ci.org/mhujer/JavaScriptErrorHandlerBundle) [](https://coveralls.io/github/mhujer/JavaScriptErrorHandlerBundle?branch=master) [](https://packagist.org/packages/mhujer/javascript-error-handler-bundle) [](https://packagist.org/packages/mhujer/javascript-error-handler-bundle)It is easy to break the JavaScript in the application while doing some non-JS change. And if you don't have the browser console open, you may not notice it.
This Bundle injects a JavaScript handler, which converts JavaScript errors to `alert()`. So they can't hide in the console unnoticed.
Usage
----
1. Install the latest version with `composer require mhujer/javascript-error-handler-bundle`
2. Register the Bundle in the `AppKernel.php`:```php