Browse Source

can't insert papaparse in script tag

this line prevents to include papaparse in an HTML <script> tag
no harm to others
pull/100/head
Giacomo Trezzi 10 years ago
parent
commit
4077d4b611
  1. 2
      papaparse.js

2
papaparse.js

@ -1223,7 +1223,7 @@ @@ -1223,7 +1223,7 @@
function getScriptPath()
{
var id = "worker" + String(Math.random()).substr(2);
document.write('<script id="'+id+'"></script>');
document.write('<script id="'+id+'"></s'+'cript>');
return document.getElementById(id).previousSibling.src;
}

Loading…
Cancel
Save