From e18708f10b04455be151a5a799f0109c34f20a25 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 27 Sep 2017 11:39:30 -0400 Subject: package updates to set up bower correctly #535 --- www/lib/localforage/src/utils/promise.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'www/lib/localforage/src/utils/promise.js') 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; -- cgit v1.2.3