Merge pull request #8406 from Rob--W/babel-cache-error-handling

Gracefully ignore transaction failure in plugin-babel-cached
This commit is contained in:
Tim van der Meij 2017-05-14 21:14:03 +02:00 committed by GitHub
commit 08f8b68f12

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);
};
});
});
}