Show More
Commit Description:
fix wrong merge
Commit Description:
fix wrong merge
References:
File last commit:
Show/Diff file:
Action:
node_modules/jszip/lib/external.js
| 19 lines
| 459 B
| application/javascript
| JavascriptLexer
|
r789 | /* global Promise */ | |||
'use strict'; | ||||
// load the global object first: | ||||
// - it should be better integrated in the system (unhandledRejection in node) | ||||
// - the environment may have a custom Promise implementation (see zone.js) | ||||
var ES6Promise = null; | ||||
if (typeof Promise !== "undefined") { | ||||
ES6Promise = Promise; | ||||
} else { | ||||
ES6Promise = require("lie"); | ||||
} | ||||
/** | ||||
* Let the user use/change some implementations. | ||||
*/ | ||||
module.exports = { | ||||
Promise: ES6Promise | ||||
}; | ||||