Skip to content

Instantly share code, notes, and snippets.

@kzar kzar/edgeIDBtest.js

Created Jan 23, 2019
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.