mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
commit
73a58f1b50
@ -48,9 +48,24 @@ var showError = function(error) {
|
|||||||
function cleanupStorage()
|
function cleanupStorage()
|
||||||
{
|
{
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
document.getElementById('btnClean').disabled = true;
|
if (BrowserFS.FileSystem.IndexedDB.isAvailable())
|
||||||
|
{
|
||||||
|
var req = indexedDB.deleteDatabase("RetroArch");
|
||||||
|
req.onsuccess = function () {
|
||||||
|
console.log("Deleted database successfully");
|
||||||
|
};
|
||||||
|
req.onerror = function () {
|
||||||
|
console.log("Couldn't delete database");
|
||||||
|
};
|
||||||
|
req.onblocked = function () {
|
||||||
|
console.log("Couldn't delete database due to the operation being blocked");
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
document.getElementById("btnClean").disabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function dropboxInit()
|
function dropboxInit()
|
||||||
{
|
{
|
||||||
//document.getElementById("btnDrop").disabled = true;
|
//document.getElementById("btnDrop").disabled = true;
|
||||||
|
@ -48,9 +48,24 @@ var showError = function(error) {
|
|||||||
function cleanupStorage()
|
function cleanupStorage()
|
||||||
{
|
{
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
document.getElementById('btnClean').disabled = true;
|
if (BrowserFS.FileSystem.IndexedDB.isAvailable())
|
||||||
|
{
|
||||||
|
var req = indexedDB.deleteDatabase("RetroArch");
|
||||||
|
req.onsuccess = function () {
|
||||||
|
console.log("Deleted database successfully");
|
||||||
|
};
|
||||||
|
req.onerror = function () {
|
||||||
|
console.log("Couldn't delete database");
|
||||||
|
};
|
||||||
|
req.onblocked = function () {
|
||||||
|
console.log("Couldn't delete database due to the operation being blocked");
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
document.getElementById("btnClean").disabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function dropboxInit()
|
function dropboxInit()
|
||||||
{
|
{
|
||||||
document.getElementById('btnRun').disabled = true;
|
document.getElementById('btnRun').disabled = true;
|
||||||
|
@ -48,6 +48,20 @@ var showError = function(error) {
|
|||||||
function cleanupStorage()
|
function cleanupStorage()
|
||||||
{
|
{
|
||||||
localStorage.clear();
|
localStorage.clear();
|
||||||
|
if (BrowserFS.FileSystem.IndexedDB.isAvailable())
|
||||||
|
{
|
||||||
|
var req = indexedDB.deleteDatabase("RetroArch");
|
||||||
|
req.onsuccess = function () {
|
||||||
|
console.log("Deleted database successfully");
|
||||||
|
};
|
||||||
|
req.onerror = function () {
|
||||||
|
console.log("Couldn't delete database");
|
||||||
|
};
|
||||||
|
req.onblocked = function () {
|
||||||
|
console.log("Couldn't delete database due to the operation being blocked");
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementById("btnClean").disabled = true;
|
document.getElementById("btnClean").disabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user