windowonerror

1.0.0 • Public • Published

onError

Safely attach a handler to window.onerror regardless of existing handlers.

It will also rebind to window.onerror if another party clobbers it.

Installation

$ npm install wcjohnson11/onerror

API

onError(fn)

Call fn when an error is thrown on the page.

License

ISC

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.05latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.05

Package Sidebar

Install

npm i windowonerror

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • wcjohnson11