web-manager 3.2.57 → 3.2.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10 -4
- package/lib/require.js +5 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -487,6 +487,9 @@ Manager.prototype.init = function(configuration, callback) {
|
|
487
487
|
initChecks: {
|
488
488
|
features: [], // an array of javascript and dom features to check for (NIY)
|
489
489
|
},
|
490
|
+
refreshNewVersion: {
|
491
|
+
enabled: true,
|
492
|
+
},
|
490
493
|
auth: {
|
491
494
|
state: 'default', // required, prohibited, default
|
492
495
|
sends: {
|
@@ -1259,7 +1262,12 @@ function showBootstrapModal(exitPopupSettings) {
|
|
1259
1262
|
}
|
1260
1263
|
|
1261
1264
|
function refreshNewVersion(self) {
|
1262
|
-
console.log('refreshNewVersion()');
|
1265
|
+
// console.log('refreshNewVersion()');
|
1266
|
+
|
1267
|
+
// Skip if not enabled
|
1268
|
+
if (!self.properties.options.refreshNewVersion.enabled) {
|
1269
|
+
return;
|
1270
|
+
}
|
1263
1271
|
|
1264
1272
|
// Make request to get the build time (live)
|
1265
1273
|
fetch('/@output/build/build.json?cb=' + new Date().getTime())
|
@@ -1278,7 +1286,7 @@ function refreshNewVersion(self) {
|
|
1278
1286
|
buildTimeCurrent.setHours(buildTimeCurrent.getHours() + 1);
|
1279
1287
|
|
1280
1288
|
// Log
|
1281
|
-
console.log('refreshNewVersion()', data, buildTimeCurrent, buildTimeLive);
|
1289
|
+
// console.log('refreshNewVersion()', data, buildTimeCurrent, buildTimeLive);
|
1282
1290
|
|
1283
1291
|
// If the live time is newer, refresh
|
1284
1292
|
if (buildTimeCurrent < buildTimeLive) {
|
@@ -1348,7 +1356,6 @@ var load_firebase = function(self, options) {
|
|
1348
1356
|
});
|
1349
1357
|
}
|
1350
1358
|
|
1351
|
-
|
1352
1359
|
var load_firebase_auth = function(self, options) {
|
1353
1360
|
return new Promise(function(resolve, reject) {
|
1354
1361
|
// Set shortcuts
|
@@ -1373,7 +1380,6 @@ var load_firebase_auth = function(self, options) {
|
|
1373
1380
|
});
|
1374
1381
|
}
|
1375
1382
|
|
1376
|
-
|
1377
1383
|
var load_firebase_firestore = function(self, options) {
|
1378
1384
|
return new Promise(function(resolve, reject) {
|
1379
1385
|
// Set shortcuts
|
package/lib/require.js
ADDED
package/package.json
CHANGED