UNPKG
catch.js
Version:
latest (0.1.0)
0.1.0
0.0.1
Catch and handle errors after deployment
github.com/arguiot/Catch
arguiot/Catch
catch.js
/
src
/
functions
/
listen.js
8 lines
(7 loc)
•
134 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
listen
(
handler
) {
if
(
typeof
module
!==
"undefined"
&&
module
.
exports
) {
this
.
node
(handler) }
else
{
this
.
browser
(handler) } }