[extensions-web: 35/75] Fix up "outdated GNOME version" check.



commit 1275935a2b6410bdda85047b6e7f734c9ee05dbd
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Sep 16 03:26:39 2011 -0400

    Fix up "outdated GNOME version" check.

 sweettooth/static/js/extensions.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index 4a89e88..549b367 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -17,7 +17,8 @@ function($, messages, dbusProxy) {
         UNINSTALLED: 99
     };
 
-    if (!dbusProxy) {
+    if (dbusProxy === undefined ||
+        dbusProxy.apiVersion === undefined) {
         // We don't have a proper DBus proxy -- it's probably an old
         // version of GNOME3 or the Shell.
         messages.addError("You do not appear to have an up " +
@@ -29,6 +30,9 @@ function($, messages, dbusProxy) {
             $(this).find('.switch').hide();
         };
 
+        $.fn.addLocalExtensions = function() {
+        };
+
         return {};
     }
 



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