diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/bitmask/core/web/bitmask.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/leap/bitmask/core/web/bitmask.js b/src/leap/bitmask/core/web/bitmask.js index ae209512..fedd5fcd 100644 --- a/src/leap/bitmask/core/web/bitmask.js +++ b/src/leap/bitmask/core/web/bitmask.js @@ -28,7 +28,11 @@ * strings. */ -import "babel-polyfill"; +try { + // Use Promises in non-ES6 compliant engines. + eval('import "babel-polyfill";') +} +catch (err) {} var bitmask = function(){ var event_handlers = {}; @@ -297,4 +301,6 @@ var bitmask = function(){ }; }(); -module.exports = bitmask +try { + module.exports = bitmask +} catch(err) {} |