mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix: handle unhandled promise rejections (#2568)
This commit is contained in:

committed by
GitHub

parent
382853cb33
commit
4555940d0b
@ -24,6 +24,10 @@ var REFTEST = window.location.search.indexOf('reftest') !== -1;
|
||||
])
|
||||
.forEach(appendScript);
|
||||
|
||||
window.addEventListener("unhandledrejection", function(event) {
|
||||
console.info('UNHANDLED PROMISE REJECTION:', event);
|
||||
});
|
||||
|
||||
window.onload = function() {
|
||||
(function($) {
|
||||
$.fn.html2canvas = function(options) {
|
||||
|
Reference in New Issue
Block a user