catch
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
This script sends errors from HTTP Preview iframes up to Val Town. You can include it in your client-side code, to help us surface client-side errors to you without you having to go hunt them down in your browser's console.
Townie knows to include this script by default, but you can install it yourself manually like so:
<script src="https://esm.town/v/std/catch"></script>
Be sure to include it before any other JS runs, so that it has the greatest chance of catching all errors.