diff options
author | bobzel <zzzman@gmail.com> | 2022-02-09 08:59:32 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-02-09 08:59:32 -0500 |
commit | a6d904bcd18a2c9962abfd9b5b325340f6b18b0d (patch) | |
tree | 32ab8f94e8f742d9303ec06029247931f1ab3895 /src/client/views/nodes/VideoBox.tsx | |
parent | 66fb0e4bbf88a5e9bcb5869dd7c8b8a7714de024 (diff) |
speeding up rendering using bitmaps for webpages and other heavyweight docs.
Diffstat (limited to 'src/client/views/nodes/VideoBox.tsx')
-rw-r--r-- | src/client/views/nodes/VideoBox.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index 615d595c0..3f3de9da3 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -257,13 +257,14 @@ export class VideoBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProp } } - public static async convertDataUri(imageUri: string, returnedFilename: string) { + public static async convertDataUri(imageUri: string, returnedFilename: string, nosuffix = false) { try { const posting = Utils.prepend("/uploadURI"); const returnedUri = await rp.post(posting, { body: { uri: imageUri, - name: returnedFilename + name: returnedFilename, + nosuffix }, json: true, }); |