Clear indexeddb when using blob: urls

This commit is contained in:
Ethan O'Brien 2021-09-16 14:02:43 -05:00 committed by GitHub
parent 0c260ce8e2
commit 678586b74a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,6 +56,7 @@ window.getHeadGameInfo = function(normalFunc, url) {
if (! url.startsWith('blob:')) {
return normalFunc(url, {})
} else {
window.addEventListener("beforeunload", function(event) {indexedDB.deleteDatabase('ejs-roms');indexedDB.deleteDatabase('ejs-romsdata');});
return async function() {
//console.log('blob url')
var a = await fetch(url)