mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #8346 from Snuffleupagus/issue-8344
Restore the `URL.createObjectURL` check to the `createObjectURL` utility function (issue 8344)
This commit is contained in:
commit
7fd2084796
1 changed files with 1 additions and 1 deletions
|
@ -1199,7 +1199,7 @@ var createObjectURL = (function createObjectURLClosure() {
|
|||
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
||||
|
||||
return function createObjectURL(data, contentType, forceDataSchema = false) {
|
||||
if (!forceDataSchema) {
|
||||
if (!forceDataSchema && URL.createObjectURL) {
|
||||
var blob = createBlob(data, contentType);
|
||||
return URL.createObjectURL(blob);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue