This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copy/paste this into browser DevTools console. */ | |
;(async () => { | |
async function dumpDatabase(dbName) { | |
var dbExists = await new Promise(resolve => { | |
var request = window.indexedDB.open(dbName) | |
request.onupgradeneeded = e => { | |
e.target.transaction.abort() | |
resolve(false) | |
} | |
request.onerror = () => resolve(true) |