We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8955e9 commit 1cc89bbCopy full SHA for 1cc89bb
src/App.js
@@ -1,5 +1,4 @@
1
let axios = require('axios');
2
-let Promise = require('promise');
3
let {checkType} = require('./helpers');
4
let Models = require('./Models');
5
let Inputs = require('./Inputs');
@@ -8,6 +7,13 @@ let Workflow = require('./Workflow');
8
7
let {API, ERRORS, getBasePath} = require('./constants');
9
let {TOKEN_PATH} = API;
10
+if (typeof window !== 'undefined' && !('Promise' in window)) {
11
+ window.Promise = require('promise');
12
+}
13
+
14
+if (typeof global !== 'undefined' && !('Promise' in global)) {
15
+ global.Promise = require('promise');
16
17
18
/**
19
* top-level class that allows access to models, inputs and concepts
0 commit comments