Skip to content

Commit 2514445

Browse files
committed
fix: forgot can-promise replacement
1 parent be9fce3 commit 2514445

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/can-promise.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// can-promise has a crash in some versions of react native that dont have
2+
// standard global objects
3+
// https://github.com/soldair/node-qrcode/issues/157
4+
5+
module.exports = function () {
6+
return typeof Promise === 'function' && Promise.prototype && Promise.prototype.then
7+
}

0 commit comments

Comments
 (0)