handle promise rejection
This commit is contained in:
rodzic
06d72cc430
commit
20afbd65b1
3
test.js
3
test.js
@ -66,6 +66,9 @@ $('.js-verify').addEventListener('click', function () {
|
|||||||
|
|
||||||
console.info('verify', msg);
|
console.info('verify', msg);
|
||||||
window.alert(msg);
|
window.alert(msg);
|
||||||
|
}, function (err) {
|
||||||
|
console.error('ERROR');
|
||||||
|
console.error(err);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Ładowanie…
x
Reference in New Issue
Block a user