Browse Source

Fix undefined global variable in UMD module

See http://stackoverflow.com/questions/3277182/how-to-get-the-global-object-in-javascript for reference.
pull/306/head
Matteo Antony Mistretta 9 years ago
parent
commit
c4c3e964bf
  1. 1
      papaparse.js

1
papaparse.js

@ -26,6 +26,7 @@
{ {
'use strict'; 'use strict';
var global = Function('return this')();
var IS_WORKER = !global.document && !!global.postMessage, var IS_WORKER = !global.document && !!global.postMessage,
IS_PAPA_WORKER = IS_WORKER && /(\?|&)papaworker(=|&|$)/.test(global.location.search), IS_PAPA_WORKER = IS_WORKER && /(\?|&)papaworker(=|&|$)/.test(global.location.search),
LOADED_SYNC = false, AUTO_SCRIPT_PATH; LOADED_SYNC = false, AUTO_SCRIPT_PATH;

Loading…
Cancel
Save