Skip to content

Commit

Permalink
fix upgrade notification logic
Browse files Browse the repository at this point in the history
  • Loading branch information
SchizoDuckie committed Feb 11, 2015
1 parent 084857f commit 39142e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 3 additions & 3 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ chrome.runtime.onInstalled.addListener(function(details) {
localStorage.setItem('runtime.event', JSON.stringify(details));
if (details.reason == "install") {
console.log("This is a first install!");
localStorage.setItem('upgrade.notify', chrome.runtime.getManifest().version);
localStorage.setItem('install.notify', chrome.runtime.getManifest().version);
/*
* example: localStorage.setItem('0.54.createtimers', 'done');
*/
} else if (details.reason == "update") {
var thisVersion = chrome.runtime.getManifest().version;
console.log("Updated from " + details.previousVersion + " to " + thisVersion + "!");
if (details.previousVersion != thisVersion) {
localStorage.setItem('upgrade.notify', thisVersion);
localStorage.setItem('install.notify', thisVersion);
}
};
});
});
7 changes: 0 additions & 7 deletions js/services/MigrationService.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ angular.module('DuckieTV.providers.migrations', ['ui.bootstrap.modal', 'DuckieTV
});
}, 5000);

$modal.open({
templateUrl: 'templates/upgrade.html',
windowClass: 'dialogs-default',
size: 'lg',
});


}

// until the TraktTV api is stabilized, we perform this check on every startup until we find no more series with a lastUpdated of null
Expand Down

0 comments on commit 39142e7

Please sign in to comment.