Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
540 B
3
Indexable
Never
var db;
var request = indexedDB.open("siloam-hospitals-web");

request.onerror = (event) => {
  console.log(event);
};

request.onsuccess = (event) => {
  db = event.target.result;

    var transaction = db.transaction(['siloam_hospitals_web']);
    var objectStore = transaction.objectStore("siloam_hospitals_web");
    var authRequest = objectStore.get("auth-mcu");
    
    authRequest.onerror = (event) => {
      // Handle errors!
    };
    
    authRequest.onsuccess = (event) => {
      console.log(authRequest.result);
    };
};