summaryrefslogtreecommitdiff
path: root/www/lib/localforage/src/utils/promise.js
blob: fe908a822d43ad0a198e4fe2249e98f9596501e2 (plain)
1
2
3
4
5
6
7
8
// This is CommonJS because lie is an external dependency, so Rollup
// can just ignore it.
if (typeof Promise === 'undefined') {
    // In the "nopromises" build this will just throw if you don't have
    // a global promise object, but it would throw anyway later.
    require('lie/polyfill');
}
export default Promise;