Merge branch 'master' of bitbucket.org:jamkazam/jam-web

This commit is contained in:
Brian Smith 2013-04-26 23:32:54 -04:00
commit 10a8296ae5
1 changed files with 7 additions and 1 deletions

View File

@ -112,10 +112,16 @@
if(currentVersion == null || currentVersion.indexOf("Compiled") > -1) {
// this is a developer build; it doesn't make much sense to do an packaged update, so skip
logger.debug("skipping client update check because this is a development build")
logger.debug("skipping client update check because this is a development build ('" + currentVersion + "')")
return;
}
// # strange client oddity: remove quotes, if found, from start and finish of version.
if(currentVersion.indexOf('"') == 0 && currentVersion.lastIndexOf('"') == currentVersion.length -1 ) {
currentVersion = currentVersion.substring(1, currentVersion.length - 1);
}
$.ajax({
type: "GET",
url: "/api/versioncheck?product=" + product + "&os=" + os,