javascript - Open blob objectURL in Chrome -
i want open pdf in new tab in chrome browser (chrome 56.0.2924.87, ubuntu 14.04) using window.open(fileobjecturl) in javascript. creating blob base64 encoded data , create objecturl this:
const fileobjecturl = url.createobjecturl(fileblob); it works fine in latest firefox browser. in chrome can see new tab gets opened closed immediately. don't error in console etc. way works in chrome give base64 data directly window.open(filebase64data) function. don't complete data being set in url.
maybe safety issue chrome blocking opening of blobs?
the cause adblock extension (i had same problem).
Comments
Post a Comment