fixed blob loading
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user