[chrome-gnome-shell] update-check: clean up.
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell] update-check: clean up.
- Date: Mon, 12 Jun 2017 18:12:07 +0000 (UTC)
commit c3efe0da60f9460124477138844e99ed2faf0dcc
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Mon Jun 12 22:11:37 2017 +0400
update-check: clean up.
extension/include/constants.js | 1 -
extension/include/update.js | 9 +--------
2 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/extension/include/constants.js b/extension/include/constants.js
index ef193ba..34e9870 100644
--- a/extension/include/constants.js
+++ b/extension/include/constants.js
@@ -18,7 +18,6 @@ COMPAT = {
NOTIFICATION_SYNC_FAILED = 'gs-chrome-sync-fail';
NOTIFICATION_UPDATE_AVAILABLE = 'gs-chrome-update';
-NOTIFICATION_UPDATE_CHECK_FAILED = 'gs-chrome-update-fail';
ALARM_UPDATE_CHECK = 'gs-chrome-update-check';
MESSAGE_NEXT_UPDATE_CHANGED = 'gs-next-update-changed';
diff --git a/extension/include/update.js b/extension/include/update.js
index fa3f682..f7b9fb6 100644
--- a/extension/include/update.js
+++ b/extension/include/update.js
@@ -65,8 +65,6 @@ GSC.update = (function($) {
}
function onSweetToothResponse(data, installedExtensions) {
- GSC.notifications.remove(NOTIFICATION_UPDATE_CHECK_FAILED);
-
var toUpgrade = [];
for (uuid in data)
{
@@ -96,14 +94,9 @@ GSC.update = (function($) {
function init() {
function onNotificationAction(notificationId, buttonIndex) {
- if ($.inArray(notificationId, [NOTIFICATION_UPDATE_AVAILABLE,
NOTIFICATION_UPDATE_CHECK_FAILED]) === -1)
+ if ($.inArray(notificationId, [NOTIFICATION_UPDATE_AVAILABLE]) === -1)
return;
- if (notificationId === NOTIFICATION_UPDATE_CHECK_FAILED && buttonIndex == 0)
- {
- check();
- }
-
GSC.notifications.remove(notificationId);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]