Changes

Jump to navigation Jump to search
m
no edit summary
Line 61: Line 61:  
function(resolve, reject) {
 
function(resolve, reject) {
   −
var pddb = await window.indexedDB.open(pddbname, 3);
+
var pddb = window.indexedDB.open(pddbname, 3);
 
var inp_obj;
 
var inp_obj;
 
pddb.onupgradeneeded = function() {
 
pddb.onupgradeneeded = function() {
Line 88: Line 88:  
if ( sqitch === "aggressive push" ) {
 
if ( sqitch === "aggressive push" ) {
 
inp_obj = record;
 
inp_obj = record;
await store.put( inp_obj );
+
store.put( inp_obj );
 
return inp_obj;
 
return inp_obj;
 
} else if ( sqitch === "checkin" ) {
 
} else if ( sqitch === "checkin" ) {
Line 98: Line 98:  
console.log("overriding whatever in there");
 
console.log("overriding whatever in there");
 
inp_obj = record;
 
inp_obj = record;
await store.put(inp_obj);
+
store.put(inp_obj);
 
}
 
}
   Line 168: Line 168:  
};
 
};
   −
await tx.oncomplete = function() {
+
tx.oncomplete = function() {
 
console.log("return 1")
 
console.log("return 1")
 
db.close();
 
db.close();
530

edits

Navigation menu