fixed blob loading

This commit is contained in:
Luxferre
2023-03-25 18:59:13 +02:00
parent b7e9b40e32
commit 175fbe4312
+1 -1
View File
@@ -27,7 +27,7 @@ function openURL(url, successCb, errorCb) {
if(resource.length > 4) input = resource[4]
Hi01379.load(resource, input, function(res) {
if(res.content && res.content instanceof Blob) { // handle the download here
successCb({content: null, serviceMsg: 'Opening a downloaded file ' + res.contentName, updateAddr: false})
successCb({content: null, serviceMsg: 'Downloaded ' + res.contentName, updateAddr: false})
window.open(URL.createObjectURL(res.content))
}
else successCb(res) // proceed to UI with non-downloads