Fix for updates reloading too fast, thanks Chrome team!

This commit is contained in:
Thomas Wilburn 2013-12-16 10:44:11 -08:00
parent 6595a39f75
commit 5fd85e2f3e
2 changed files with 10 additions and 8 deletions

View file

@ -38,6 +38,7 @@ require([
var checkUpdates = function(isManual) {
chrome.runtime.requestUpdateCheck(function(status, details) {
if (status == "update_available") {
chrome.runtime.onUpdateAvailable.addListener(function() {
chrome.notifications.create(updateID, {
type: "basic",
iconUrl: "icon-128.png",
@ -45,6 +46,7 @@ require([
message: "An update to Caret version " + details.version + " is available. Would you like to update and restart now?",
buttons: [ { title: "Yes, update and restart" }, { title: "No thanks" }]
}, function(id) { updateID = id });
});
}
});
};

View file

@ -1,7 +1,7 @@
{
"name": "Caret",
"description": "Professional text editing for Chrome and Chrome OS",
"version": "1.2.32",
"version": "1.2.35",
"manifest_version": 2,
"icons": {
"128": "icon-128.png"