allow app.json version overrides to percolate through all loads
This commit is contained in:
parent
3e97bae8fa
commit
61bd454f85
5 changed files with 14 additions and 11 deletions
|
|
@ -1,13 +1,13 @@
|
|||
const service_worker = navigator.serviceWorker;
|
||||
|
||||
async function start_service_worker() {
|
||||
const version = 65;
|
||||
const version = self.gapp.version;
|
||||
function debug() {
|
||||
console.log(`[${version}]`, ...arguments);
|
||||
}
|
||||
|
||||
// install service worker
|
||||
debug('service worker registration', { gapp: self.gapp.version });
|
||||
debug('service worker registration');
|
||||
|
||||
try {
|
||||
// const reg = await navigator.serviceWorker.register("/src/moto/service.js?013", { scope: "/" });
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
let terms = {
|
||||
COPYRIGHT: "Copyright (C) Stewart Allen <sa@grid.space> - All Rights Reserved",
|
||||
LICENSE: "See the license.md file included with the source distribution",
|
||||
VERSION: "3.5.D4"
|
||||
VERSION: this.debug_version || "3.5.D4"
|
||||
};
|
||||
|
||||
if (typeof(module) === 'object') {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
const version = 65;
|
||||
const version = self.gapp.version;
|
||||
const stats = {
|
||||
hit: 0,
|
||||
miss: 0,
|
||||
|
|
@ -22,7 +22,7 @@ function report() {
|
|||
stats.hit = stats.miss = stats.fetch = stats.cache = stats.preload = 0;
|
||||
}
|
||||
|
||||
debug('sw entry point', { gapp: self.gapp.version });
|
||||
debug('sw entry point');
|
||||
|
||||
const addResourcesToCache = async (resources) => {
|
||||
// debug('cache resources', resources);
|
||||
|
|
|
|||
Loading…
Reference in a new issue