web-manager 2.1.30 → 2.1.31
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +13 -8
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1220,6 +1220,7 @@ function Manager() {
|
|
1220
1220
|
if (setting.enabled === true) {
|
1221
1221
|
function _post() {
|
1222
1222
|
// This.log('Loaded Firebase.');
|
1223
|
+
// console.log('_post.');
|
1223
1224
|
window.app = firebase.initializeApp(setting.config);
|
1224
1225
|
|
1225
1226
|
Promise.all([
|
@@ -1231,8 +1232,9 @@ function Manager() {
|
|
1231
1232
|
.catch(reject);
|
1232
1233
|
}
|
1233
1234
|
if (setting.load) {
|
1234
|
-
setting.load()
|
1235
|
-
_post
|
1235
|
+
setting.load(This)
|
1236
|
+
.then(_post)
|
1237
|
+
.catch(reject);
|
1236
1238
|
} else {
|
1237
1239
|
import('firebase/app')
|
1238
1240
|
.then(function(mod) {
|
@@ -1256,8 +1258,9 @@ function Manager() {
|
|
1256
1258
|
var setting = options.libraries.firebase_auth;
|
1257
1259
|
if (setting.enabled === true) {
|
1258
1260
|
if (setting.load) {
|
1259
|
-
setting.load()
|
1260
|
-
resolve
|
1261
|
+
setting.load(This)
|
1262
|
+
.then(resolve)
|
1263
|
+
.catch(reject);
|
1261
1264
|
} else {
|
1262
1265
|
import('firebase/auth')
|
1263
1266
|
.then(resolve)
|
@@ -1279,8 +1282,9 @@ function Manager() {
|
|
1279
1282
|
var setting = options.libraries.firebase_firestore;
|
1280
1283
|
if (setting.enabled === true) {
|
1281
1284
|
if (setting.load) {
|
1282
|
-
setting.load()
|
1283
|
-
resolve
|
1285
|
+
setting.load(This)
|
1286
|
+
.then(resolve)
|
1287
|
+
.catch(reject);
|
1284
1288
|
} else {
|
1285
1289
|
import('firebase/firestore')
|
1286
1290
|
.then(resolve)
|
@@ -1300,8 +1304,9 @@ function Manager() {
|
|
1300
1304
|
var setting = options.libraries.firebase_messaging;
|
1301
1305
|
if (setting.enabled === true) {
|
1302
1306
|
if (setting.load) {
|
1303
|
-
setting.load()
|
1304
|
-
resolve
|
1307
|
+
setting.load(This)
|
1308
|
+
.then(resolve)
|
1309
|
+
.catch(reject);
|
1305
1310
|
} else {
|
1306
1311
|
import('firebase/messaging')
|
1307
1312
|
.then(resolve)
|
package/package.json
CHANGED