mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 10:56:30 +00:00
Clear indexeddb when using blob:
urls
This commit is contained in:
parent
0c260ce8e2
commit
678586b74a
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue