aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PDFBox.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r--src/client/views/nodes/PDFBox.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index 05088f688..1fb3090b8 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -262,7 +262,7 @@ export class PDFBox extends DocComponent<FieldViewProps, PdfDocument>(PdfDocumen
this.props.Document.thumbnail = new ImageField(new URL(url));
}
runInAction(() => this._renderAsSvg = true);
- })
+ });
}))
.catch(function (error: any) {
console.error('oops, something went wrong!', error);
@@ -336,7 +336,7 @@ export class PDFBox extends DocComponent<FieldViewProps, PdfDocument>(PdfDocumen
choosePath(url: URL) {
if (url.protocol === "data" || url.href.indexOf(window.location.origin) === -1)
- return url.href;
+ {return url.href;}
let ext = path.extname(url.href);
return url.href.replace(ext, this._curSuffix + ext);
}
@@ -351,7 +351,7 @@ export class PDFBox extends DocComponent<FieldViewProps, PdfDocument>(PdfDocumen
@action onError = () => {
let timeout = this._curSuffix === "_s" ? this._smallRetryCount : this._curSuffix === "_m" ? this._mediumRetryCount : this._largeRetryCount;
if (timeout < 10)
- setTimeout(this.retryPath, Math.min(10000, timeout * 5));
+ {setTimeout(this.retryPath, Math.min(10000, timeout * 5));}
}
_curSuffix = "_m";