[chrome-gnome-shell] sync: store local extensions in all states except "uninstalled"



commit 040066a723b8043ebb529a27ba62dcc7063c6a9b
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Mon Feb 6 11:56:16 2017 +0400

    sync: store local extensions in all states except "uninstalled"
    
    Fixes: https://github.com/nE0sIghT/chrome-gnome-shell-mirror/issues/28

 extension/options.js |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/extension/options.js b/extension/options.js
index 43c8d2e..4bb1572 100644
--- a/extension/options.js
+++ b/extension/options.js
@@ -32,11 +32,7 @@ function save_options()
                                        GSC.sync.getExtensions($.Deferred().done(function (extensions) {
                                                var localExtensions = {};
                                                $.each(extensions, function (uuid, extension) {
-                                                       if(
-                                                               extension.local &&
-                                                               $.inArray(extension.localState,
-                                                                       [EXTENSION_STATE.ENABLED, 
EXTENSION_STATE.DISABLED]) !== -1
-                                                       )
+                                                       if(extension.local && extension.localState != 
EXTENSION_STATE.UNINSTALLED)
                                                        {
                                                                localExtensions[extension.uuid] = {
                                                                        uuid:   extension.uuid,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]