Files
fvtt-cthulhu-eternal/node_modules/localforage/src/utils/promise.js

9 lines
322 B
JavaScript

// 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;