doesn't work as expected in Safari. There, typeof XMLHttpRequest actually returns object, which causes the script to try and use fs.readFile and breaks in the browser.
I'm not familiar enough with the Node environment (i.e. how fs is recognized) to do a pull request here, or I would.
Heya!
The line
doesn't work as expected in Safari. There,
typeof XMLHttpRequest
actually returnsobject
, which causes the script to try and usefs.readFile
and breaks in the browser.I'm not familiar enough with the Node environment (i.e. how
fs
is recognized) to do a pull request here, or I would.In any case, cheers!