diff --git a/src/app-sync.ts b/src/app-sync.ts index c914ac8..5b8d6e1 100644 --- a/src/app-sync.ts +++ b/src/app-sync.ts @@ -136,6 +136,14 @@ export class AppSync { AppSync.syncInProgress = false; return; } + + const versionIsCurrent = remotePackage.packageHash === ApplicationSettings.getString(AppSync.CURRENT_HASH_KEY); + if (versionIsCurrent) { + console.log("Update already installed."); + syncCallback && syncCallback(SyncStatus.UP_TO_DATE); + AppSync.syncInProgress = false; + return; + } const onError = (error: Error) => { console.log("Download error: " + error);