[extensions-web] dbus: drop ancient API versions. They are 6 years old already.



commit 88eb25a46078aa3fe990ef179c3c72d011016fdc
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun Jan 6 16:33:00 2019 +0400

    dbus: drop ancient API versions. They are 6 years old already.

 sweettooth/static/js/dbus.js            |  3 ++-
 sweettooth/static/js/versions/1/main.js | 26 --------------------------
 sweettooth/static/js/versions/2/main.js | 28 ----------------------------
 sweettooth/static/js/versions/3/main.js | 28 ----------------------------
 sweettooth/static/js/versions/4/main.js | 28 ----------------------------
 5 files changed, 2 insertions(+), 111 deletions(-)
---
diff --git a/sweettooth/static/js/dbus.js b/sweettooth/static/js/dbus.js
index 7bf2a7a..aa0323e 100644
--- a/sweettooth/static/js/dbus.js
+++ b/sweettooth/static/js/dbus.js
@@ -19,6 +19,7 @@
 define(['jquery'], function ($) {
        "use strict";
 
+       const SUPPORTED_APIS = [5];
        var exports = {};
 
        var load = exports.load = function (name, req, onLoad, config) {
@@ -40,7 +41,7 @@ define(['jquery'], function ($) {
                        }
                        catch (e) { }
 
-                       if (!apiVersion)
+                       if (!apiVersion || SUPPORTED_APIS.indexOf(apiVersion) === -1)
                        {
                                apiVersion = 'dummy';
                        }


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