Be more nodejs friendly, tweak some lines

This commit is contained in:
Josh Ponelat
2017-12-06 20:59:47 +02:00
parent e0ac7c11db
commit 733cddf146
3 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
// Promise global, Used ( at least ) by 'whatwg-fetch'. And required by IE 11
if(!window.Promise) {
if(typeof Promise === "undefined") {
require("core-js/fn/promise")
}