Changeset f2a2d5


Ignore:
Timestamp:
Sep 9, 2018, 6:02:52 PM (2 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
d4e540
Parents:
13e2d2
Message:

moved reading of rdf to add AccountManager? observer

Location:
content
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • content/vI_overlay.js

    r13e2d2 rf2a2d5  
    2828
    2929    let Log = vI.setupLogging("virtualIdentity.overlay");
    30 
     30    var rdfDatasource;
     31   
    3132    Components.utils.import("resource://v_identity/vI_rdfDatasource.js", virtualIdentityExtension);
    3233    Components.utils.import("resource://v_identity/vI_account.js", virtualIdentityExtension);
     
    3940      if (addon) {
    4041        vI.extensionVersion = addon.version;
    41         Log.debug("current version = " + vI.extensionVersion);
    4242      }
    4343    });
     
    4545
    4646    function extensionInit() {
    47       Log.debug("init")
    48       vI.upgrade.quickUpgrade();
     47      rdfDatasource = new vI.rdfDatasource(window, "virtualIdentity_0.10.rdf", false); // create this for upgrade and keep it to permanatly enable accountManager observer
     48      vI.upgrade.quickUpgrade(rdfDatasource);
    4949
    5050      if (vI.vIprefs.get("error_console")) {
     
    5959
    6060    addEventListener('messagepane-loaded', extensionInit, true);
    61     Log.debug("init rdfDatasource");
    62     var rdfDatasource = vI.rdfDatasourceAccess(window);
    63     Log.debug("init rdfDatasource done");
    6461  }
    6562});
  • content/vI_upgrade.js

    r13e2d2 rf2a2d5  
    3838      rdfDatasource: null,
    3939
    40       quickUpgrade: function (currentVersion) {
    41         upgrade.rdfDatasource = new vI.rdfDatasource(window, "virtualIdentity_0.10.rdf", true);
     40      quickUpgrade: function (rdfDatasource) {
     41        upgrade.rdfDatasource = rdfDatasource;
    4242        if (upgrade.rdfDatasource.extUpgradeRequired())
    4343          upgrade.extUpgrade();
    4444        upgrade.rdfDatasource.refreshAccountInfo();
    45         upgrade.rdfDatasource.clean();
    4645        return true;
    4746      },
Note: See TracChangeset for help on using the changeset viewer.