diff --git a/papaparse.js b/papaparse.js index 88d06db..96b6c80 100644 --- a/papaparse.js +++ b/papaparse.js @@ -7,7 +7,7 @@ { "use strict"; - var IS_WORKER = !global.document, LOADED_SYNC = false, AUTO_SCRIPT_PATH; + var IS_WORKER = (!global.document && !!global.postMessage), LOADED_SYNC = false, AUTO_SCRIPT_PATH; var workers = {}, workerIdCounter = 0; var Papa = {};