Changeset 6324cd


Ignore:
Timestamp:
Jul 6, 2011, 2:58:11 PM (9 years ago)
Author:
rene <rene@…>
Branches:
ng_0.8, ng_0.9
Children:
17c977
Parents:
b40509
Message:

version-test not required anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_notificationBar.js

    rb40509 r6324cd  
    4242    Obj_DebugBaseID : null,
    4343   
    44     versionOk : false,
    45    
    46     checkVersion : function() {
    47         // the notification-bar only works from 1.5.0.7 on, else thunderbird segfaults
    48         const THUNDERBIRD_ID = "{3550f703-e582-4d05-9a08-453d09bdfdc6}";
    49         if (("@mozilla.org/xre/app-info;1" in Components.classes) &&
    50             ("@mozilla.org/xpcom/version-comparator;1" in Components.classes)) {
    51             var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
    52                 .getService(Components.interfaces.nsIXULAppInfo);
    53             var appID = appInfo.ID
    54             var appVersion = appInfo.version
    55             var versionChecker = Components.classes["@mozilla.org/xpcom/version-comparator;1"]
    56                 .getService(Components.interfaces.nsIVersionComparator);
    57             if (appID != THUNDERBIRD_ID || versionChecker.compare(appVersion, "1.5.0.7") >= 0)
    58                 vI_notificationBar.versionOk = true
    59         }
    60     },
    61 
    6244    observe: function() {
    6345        var showDebugArea = vI_notificationBar.preferences.getBoolPref("debug_notification")
     
    8971        vI_notificationBar.addObserver();
    9072        vI_notificationBar.observe();
    91         vI_notificationBar.checkVersion();
    9273        vI_notificationBar.dump_app_version();
    9374
     
    197178        if (!vI_notificationBar.Obj_vINotification) vI_notificationBar.init();
    198179        if (!vI_notificationBar.Obj_vINotification) return;
    199         if (!vI_notificationBar.versionOk) return;
    200180        var oldNotification = vI_notificationBar.Obj_vINotification.currentNotification
    201181        var newLabel = (oldNotification)?oldNotification.label + note:note;
Note: See TracChangeset for help on using the changeset viewer.