Skip to content

Commit

Permalink
Check console it defined for IE8
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorhakes committed Apr 23, 2016
1 parent 5425d73 commit 1e62013
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "promise-polyfill",
"version": "4.0.3",
"version": "4.0.4",
"description": "Lightweight promise polyfill. A+ compliant",
"main": "promise.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
};

var onUnhandledRejection = function onUnhandledRejection(err) {
console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console
if (typeof console !== 'undefined' && console) {
console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console
}
};

// Polyfill for Function.prototype.bind
Expand Down
2 changes: 1 addition & 1 deletion promise.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e62013

Please sign in to comment.