WebAPI/DeviceIndexedDB: Difference between revisions

Jump to navigation Jump to search
m
Line 96: Line 96:
   var apps = store.index("apps");
   var apps = store.index("apps");
   
   
   var statisrequest = apps.get("some-app-id");
   var statisrequest = apps.get("any-app-id");
   statisrequest.onsuccess = function () {
   statisrequest.onsuccess = function () {
     var statistic = statisrequest.result;
     var statistic = statisrequest.result;
     showStatisticForApp(statistic);
     showStatisticForApp(statistic);
  }
}
{
  name: "My Applicaiton",
  ......
  mozDeviceIndexedDB: {
      "[SystemServices]": {
          "NetworkStatistics": {
              "ObjectStore": "none",
              "index": {
                  "apps": ["any-app-id"],
              }
          }
      }
   }
   }
  }
  }
Confirmed users
398

edits

Navigation menu