fix: forgot can-promise replacement
This commit is contained in:
parent
be9fce3185
commit
25144450d7
1 changed files with 7 additions and 0 deletions
7
lib/can-promise.js
Normal file
7
lib/can-promise.js
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue