localforage
Version:
Offline storage, improved.
9 lines (8 loc) • 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;