I am getting an error 'Uncaught TypeError: Cannot read property 'transaction' of null '
when in this section of code
remoteDB.indexedDB.addAdmins = function() {
var db = remoteDB.indexedDB.db;
var trans = db.transaction(students, readwrite);
var request = trans.objectStore(administrators);
/*
this section edited out since the failure is on line 3
*/
request.onsuccess = function(e) {
console.log(success Adding: , e);
};
request.onerror = function(e) {
console.log(e.value);
};
};