debugging

This commit is contained in:
Nuwan 2023-09-01 15:57:35 +05:30
parent 9e2adc9ce0
commit f92ae4dd8d
3 changed files with 4 additions and 2 deletions

View File

@ -358,6 +358,7 @@
activeElementEvent("afterConnect", payload);
if (payload.client_update && context.JK.ClientUpdateInstance) {
console.log('_DEBUG_ JamServer before ClientUpdateInstance.runCheck', payload.client_update)
context.JK.ClientUpdateInstance.runCheck(
payload.client_update.product,
payload.client_update.version,

View File

@ -202,7 +202,7 @@
}
async function runCheck(product, version, uri, size, currentVersion) {
console.log("_DEBUG_ runCheck", product, version, uri, size, currentVersion);
if (app.clientUpdating) {
logger.debug("client is already updating; skipping")
return
@ -284,7 +284,7 @@
url: "/api/versioncheck?product=" + product + "&os=" + os,
success: function (response) {
if(!jQuery.isEmptyObject(response)){
console.log('_DEBUG_ clientUpdate versioncheck response', response);
console.log('_DEBUG_ clientUpdate before runCheck', product, response);
runCheck(product, response.version, response.uri, response.size, currentVersion);
}
},

View File

@ -424,6 +424,7 @@
JK.JamServer.registerMessageCallback(JK.MessageType.CLIENT_UPDATE, function(header, payload) {
// do a client update early check upon initialization
console.log('_DEBUG_ index.html before runCheck', payload);
JK.ClientUpdateInstance.runCheck(payload.product, payload.version, payload.uri, payload.size)
});