@d-i-t-a/reader 2.0.0-beta.2 → 2.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +32 -27
- package/dist/esm/index.js.map +2 -2
- package/dist/reader.js +2 -2
- package/dist/reader.js.map +2 -2
- package/dist/types/navigator/IFrameNavigator.d.ts +4 -0
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ export interface NavigatorAPI {
|
|
|
27
27
|
resourceAtEnd: any;
|
|
28
28
|
resourceFitsScreen: any;
|
|
29
29
|
updateCurrentLocation: any;
|
|
30
|
+
onError?: (e: Error) => void;
|
|
30
31
|
}
|
|
31
32
|
export interface UpLinkConfig {
|
|
32
33
|
url?: URL;
|
|
@@ -214,6 +215,9 @@ export default class IFrameNavigator implements Navigator {
|
|
|
214
215
|
private loadManifest;
|
|
215
216
|
private handleIFrameLoad;
|
|
216
217
|
private injectInjectablesIntoIframeHead;
|
|
218
|
+
/**
|
|
219
|
+
* Displays standard error UI.
|
|
220
|
+
*/
|
|
217
221
|
private abortOnError;
|
|
218
222
|
private tryAgain;
|
|
219
223
|
private precessContentForIframe;
|