Blame view

public/assets/addons/fastflow/plugins/node-qrcode-master/lib/can-promise.js 275 Bytes
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
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
  }