Firebase Update
This commit is contained in:
21
express-server/node_modules/promise-polyfill/src/polyfill.js
generated
vendored
Normal file
21
express-server/node_modules/promise-polyfill/src/polyfill.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import Promise from './index';
|
||||
|
||||
var globalNS = (function() {
|
||||
// the only reliable means to get the global object is
|
||||
// `Function('return this')()`
|
||||
// However, this causes CSP violations in Chrome apps.
|
||||
if (typeof self !== 'undefined') {
|
||||
return self;
|
||||
}
|
||||
if (typeof window !== 'undefined') {
|
||||
return window;
|
||||
}
|
||||
if (typeof global !== 'undefined') {
|
||||
return global;
|
||||
}
|
||||
throw new Error('unable to locate global object');
|
||||
})();
|
||||
|
||||
if (!globalNS.Promise) {
|
||||
globalNS.Promise = Promise;
|
||||
}
|
||||
Reference in New Issue
Block a user