Changes

Jump to navigation Jump to search
m
no edit summary
Line 89: Line 89:  
var db = pddb.result;
 
var db = pddb.result;
 
var store = db.createObjectStore(pddbname, {keyPath: "id"});
 
var store = db.createObjectStore(pddbname, {keyPath: "id"});
var index;
+
var index = store.createIndex("NameIndex", ["id"]);
// shouldn't the index be the wiki.personaldata.io username?
  −
if ( iOS ) {
  −
index = db.store.createIndex("NameIndex", ["id"]);
  −
} else {
  −
index = store.createIndex("NameIndex", ["id"]);
  −
}
   
 
 
};
 
};
Line 114: Line 108:     
// Get the original record from the db...
 
// Get the original record from the db...
var getRecord = index.get(record.id);
+
var getRecord;
 +
if ( iOS ) {
 +
getRecord = index.get(record.id);
 +
} else {
 +
getRecord = index.get([record.id]);
 +
}
    
getRecord.onsuccess = function() {
 
getRecord.onsuccess = function() {
530

edits

Navigation menu