Skip to content

Instantly share code, notes, and snippets.

@kzar
Created January 23, 2019 12:11
Show Gist options
  • Save kzar/543caa2561d15983c1e975d532a73d17 to your computer and use it in GitHub Desktop.
Save kzar/543caa2561d15983c1e975d532a73d17 to your computer and use it in GitHub Desktop.
Edge extension IndexedDB test (7223)
function openDB(dbName)
{
let req = indexedDB.open(dbName);
req.onsuccess = event =>
{
console.log("version::", event.currentTarget.result.version);
console.log("store names::", JSON.stringify(event.currentTarget.result.objectStoreNames));
};
req.onerror = event =>
{
console.log("error::", event.target.error);
}
}
openDB("localforage");
@kzar
Copy link
Author

kzar commented Jan 23, 2019

Instructions

  1. Ensure that you've enabled the extension developer features on the about:flags page in Edge.
  2. Open the "..." menu, click "Extensions", the cog icon next to Adblock Plus, then "Background page".
  3. Paste the above code in the background console which opened, and let us know what the output is.

Note: Take care to disable the extension developer features again, unless you really are developing Edge extensions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment