Browse Source

remove try/catch

pull/599/head
Jonathan Grimes 7 years ago committed by Jonathan Grimes
parent
commit
0a21c8d841
  1. 4
      papaparse.js

4
papaparse.js

@ -56,13 +56,9 @@ if (!Array.isArray) @@ -56,13 +56,9 @@ if (!Array.isArray)
function getWorkerBlob() {
try {
var URL = global.URL || global.webkitURL || null;
var code = moduleFactory.toString();
return Papa.BLOB_URL || (Papa.BLOB_URL = URL.createObjectURL(new Blob(['(', code, ')();'], {type: 'text/javascript'})));
} catch (e) {
return null;
}
}
var IS_WORKER = !global.document && !!global.postMessage,

Loading…
Cancel
Save