summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r--src/leap/bitmask/core/web/bitmask.js10
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 ae20951..fedd5fc 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) {}