mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Merge pull request #8406 from Rob--W/babel-cache-error-handling
Gracefully ignore transaction failure in plugin-babel-cached
This commit is contained in:
commit
08f8b68f12
1 changed files with 6 additions and 0 deletions
6
external/systemjs/plugin-babel-cached.js
vendored
6
external/systemjs/plugin-babel-cached.js
vendored
|
@ -55,6 +55,9 @@ function storeCache(address, hashCode, translated, format) {
|
||||||
tx.oncomplete = function () {
|
tx.oncomplete = function () {
|
||||||
resolve();
|
resolve();
|
||||||
};
|
};
|
||||||
|
tx.onerror = function () {
|
||||||
|
resolve();
|
||||||
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -74,6 +77,9 @@ function loadCache(address, hashCode) {
|
||||||
format: found.format,
|
format: found.format,
|
||||||
} : null);
|
} : null);
|
||||||
};
|
};
|
||||||
|
tx.onerror = function () {
|
||||||
|
resolve(null);
|
||||||
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue