Addnew sheets (armor, weapons, malefica) and v13 support
This commit is contained in:
11
node_modules/localforage/src/utils/executeTwoCallbacks.js
generated
vendored
Normal file
11
node_modules/localforage/src/utils/executeTwoCallbacks.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
function executeTwoCallbacks(promise, callback, errorCallback) {
|
||||
if (typeof callback === 'function') {
|
||||
promise.then(callback);
|
||||
}
|
||||
|
||||
if (typeof errorCallback === 'function') {
|
||||
promise.catch(errorCallback);
|
||||
}
|
||||
}
|
||||
|
||||
export default executeTwoCallbacks;
|
||||
Reference in New Issue
Block a user