daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Mar 18th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Create new IndexedDB
  2. var request = window.indexedDB.open("Offline-DB", 1);
  3.  
  4. //set variable storagedata to IndexedDB
  5. request.onupgradeneeded = function(event) {
  6.    var db = event.target.result;
  7.    var transaction = event.target.transaction;
  8.    var objectStore = db.createObjectStore("sig", {keyPath: 'key', autoIncrement: true});
  9.    objectStore.add({value: storagedata});
  10.  
  11.    }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top