1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 07:37:57 +02:00

Add a console warning when JavaScript/AcroForm/XFA was found

This commit is contained in:
vyv03354 2013-03-17 00:13:08 +09:00
parent d48097845f
commit 385a5f7dcc
2 changed files with 7 additions and 2 deletions

View file

@ -390,7 +390,8 @@
if (!('console' in window)) {
window.console = {
log: function() {},
error: function() {}
error: function() {},
warn: function() {}
};
} else if (!('bind' in console.log)) {
// native functions in IE9 might not have bind
@ -400,6 +401,9 @@
console.error = (function(fn) {
return function(msg) { return fn(msg); };
})(console.error);
console.warn = (function(fn) {
return function(msg) { return fn(msg); };
})(console.warn);
}
})();