Skip to content

Commit

Permalink
fix: forgot can-promise replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
soldair committed Nov 5, 2018
1 parent be9fce3 commit 2514445
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/can-promise.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// can-promise has a crash in some versions of react native that dont have
// standard global objects
// https://github.com/soldair/node-qrcode/issues/157

module.exports = function () {
return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then
}

0 comments on commit 2514445

Please sign in to comment.