Fix for updates reloading too fast, thanks Chrome team!
This commit is contained in:
parent
6595a39f75
commit
5fd85e2f3e
2 changed files with 10 additions and 8 deletions
|
@ -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 });
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue