diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-27 11:39:30 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-27 11:39:30 -0400 |
| commit | e18708f10b04455be151a5a799f0109c34f20a25 (patch) | |
| tree | 9e4559ef0fff8b366474e7768308ddca1e32268a /www/lib/localforage/src/utils/promise.js | |
| parent | 97a1cb3ae199c7b5455dcba0001efd5b4c32040a (diff) | |
package updates to set up bower correctly #535
Diffstat (limited to 'www/lib/localforage/src/utils/promise.js')
| -rw-r--r-- | www/lib/localforage/src/utils/promise.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/www/lib/localforage/src/utils/promise.js b/www/lib/localforage/src/utils/promise.js index 177a10d0..fe908a82 100644 --- a/www/lib/localforage/src/utils/promise.js +++ b/www/lib/localforage/src/utils/promise.js @@ -1,6 +1,8 @@ // This is CommonJS because lie is an external dependency, so Rollup // can just ignore it. -if (typeof Promise === 'undefined' && typeof require !== 'undefined') { +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; |
