Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-07T08:56:35.000Z (about 3 years ago)
- Last Synced: 2024-11-15T22:07:29.874Z (about 2 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
[![Build Status](https://travis-ci.org/mhujer/JavaScriptErrorHandlerBundle.svg?branch=master)](https://travis-ci.org/mhujer/JavaScriptErrorHandlerBundle) [![Coverage Status](https://coveralls.io/repos/github/mhujer/JavaScriptErrorHandlerBundle/badge.svg?branch=master)](https://coveralls.io/github/mhujer/JavaScriptErrorHandlerBundle?branch=master) [![Latest Stable Version](https://poser.pugx.org/mhujer/javascript-error-handler-bundle/v/stable)](https://packagist.org/packages/mhujer/javascript-error-handler-bundle) [![License](https://poser.pugx.org/mhujer/javascript-error-handler-bundle/license)](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