diff --git a/lib/torrent.js b/lib/torrent.js index 7ff039ec..89ad91db 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -58,7 +58,7 @@ var TMP try { TMP = path.join(fs.statSync('/tmp') && '/tmp', 'webtorrent') } catch (err) { - TMP = path.join(typeof os.tmpDir === 'function' ? os.tmpDir() : '/', 'webtorrent') + TMP = path.join(typeof os.tmpdir === 'function' ? os.tmpdir() : '/', 'webtorrent') } inherits(Torrent, EventEmitter)