From 5f2adffe9edc4cd5e85bbc5021011069f0d9ebcb Mon Sep 17 00:00:00 2001 From: kovacsv Date: Mon, 22 Nov 2021 08:59:30 +0100 Subject: [PATCH] Access files through importer callback so they will appear among missing files. --- source/import/importerthree.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/source/import/importerthree.js b/source/import/importerthree.js index d86e1de..af6a9d0 100644 --- a/source/import/importerthree.js +++ b/source/import/importerthree.js @@ -80,16 +80,14 @@ OV.ImporterThreeBase = class extends OV.ImporterBase if (url === mainFileUrl) { return url; } - if (url.startsWith ('blob:')) { - const name = OV.GetFileName (url); - const extension = OV.GetFileExtension (url); - if (extension.length > 0) { - const buffer = this.callbacks.getFileBuffer (url); - if (buffer !== null) { - let objectUrl = OV.CreateObjectUrl (buffer); - this.objectUrlToFileName.set (objectUrl, name); - return objectUrl; - } + const name = OV.GetFileName (url); + const extension = OV.GetFileExtension (url); + if (extension.length > 0) { + const buffer = this.callbacks.getFileBuffer (url); + if (buffer !== null) { + let objectUrl = OV.CreateObjectUrl (buffer); + this.objectUrlToFileName.set (objectUrl, name); + return objectUrl; } } return url;