mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Remove the test of experimental properties in workers
This commit is contained in:
parent
f8e70dcf13
commit
b591d39130
3 changed files with 18 additions and 7 deletions
|
@ -168,8 +168,14 @@ var WorkerMessageHandler = {
|
|||
}
|
||||
// check if the response property is supported by xhr
|
||||
var xhr = new XMLHttpRequest();
|
||||
if (!('response' in xhr || 'mozResponse' in xhr ||
|
||||
'responseArrayBuffer' in xhr || 'mozResponseArrayBuffer' in xhr)) {
|
||||
var responseExists = 'response' in xhr;
|
||||
// check if the property is actually implemented
|
||||
try {
|
||||
var dummy = xhr.responseType;
|
||||
} catch (e) {
|
||||
responseExists = false;
|
||||
}
|
||||
if (!responseExists) {
|
||||
handler.send('test', false);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue