Browse Source

Fix for file parsing in workers in Safari (fixes #106)

pull/124/head
Matthew Holt 10 years ago
parent
commit
6589011209
  1. 4
      papaparse.js

4
papaparse.js

@ -190,7 +190,7 @@
return results; return results;
} }
} }
else if (_input instanceof File) else if ((global.File && _input instanceof File) || _input instanceof Object) // ...Safari. (see issue #106)
{ {
if (config.step || config.chunk) if (config.step || config.chunk)
{ {
@ -1292,7 +1292,7 @@
finished: true finished: true
}); });
} }
else if (msg.input instanceof File) else if ((global.File && msg.input instanceof File) || msg.input instanceof Object) // thank you, Safari (see issue #106)
{ {
var results = Papa.parse(msg.input, msg.config); var results = Papa.parse(msg.input, msg.config);
if (results) if (results)

Loading…
Cancel
Save