Gracefully ignore transaction failure in plugin-babel-cached

This commit is contained in:
Rob Wu 2017-05-14 16:01:32 +02:00
parent 63597cc556
commit b3bd2f3b38

View File

@ -55,6 +55,9 @@ function storeCache(address, hashCode, translated, format) {
tx.oncomplete = function () {
resolve();
};
tx.onerror = function () {
resolve();
};
});
});
}
@ -74,6 +77,9 @@ function loadCache(address, hashCode) {
format: found.format,
} : null);
};
tx.onerror = function () {
resolve(null);
};
});
});
}