debug versioncheck api
This commit is contained in:
parent
20331c6d60
commit
5ca37d63c1
|
|
@ -191,6 +191,7 @@
|
||||||
|
|
||||||
// if the current version doesn't not match the server version, attempt to do an upgrade
|
// if the current version doesn't not match the server version, attempt to do an upgrade
|
||||||
function shouldUpdate(currentVersion, version) {
|
function shouldUpdate(currentVersion, version) {
|
||||||
|
console.log('_DEBUG_ forceShow', forceShow)
|
||||||
if(forceShow) return true;
|
if(forceShow) return true;
|
||||||
|
|
||||||
if (version === undefined || version == null || version == "") {
|
if (version === undefined || version == null || version == "") {
|
||||||
|
|
@ -227,6 +228,8 @@
|
||||||
|
|
||||||
// test url in lieu of having a configured server with a client-update available
|
// test url in lieu of having a configured server with a client-update available
|
||||||
|
|
||||||
|
console.log('_DEBUG_ shouldUpdate', currentVersion, version)
|
||||||
|
|
||||||
if (shouldUpdate(currentVersion, version)) {
|
if (shouldUpdate(currentVersion, version)) {
|
||||||
app.clientUpdating = true;
|
app.clientUpdating = true;
|
||||||
updateUri = uri;
|
updateUri = uri;
|
||||||
|
|
@ -283,7 +286,7 @@
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "/api/versioncheck?product=" + product + "&os=" + os,
|
url: "/api/versioncheck?product=" + product + "&os=" + os,
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
console.log('versioncheck response', response)
|
console.log('_DEBUG_ versioncheck response', response)
|
||||||
if(!jQuery.isEmptyObject(response)){
|
if(!jQuery.isEmptyObject(response)){
|
||||||
runCheck(product, response.version, response.uri, response.size, currentVersion);
|
runCheck(product, response.version, response.uri, response.size, currentVersion);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue