Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam <willyb321@users.noreply.github.com>2017-02-12 04:24:28 +0300
committerGitHub <noreply@github.com>2017-02-12 04:24:28 +0300
commitd0ff190e718a9f486b350dae2795f57554962624 (patch)
treebd4fd1cb1e41c462a76b5efae606231412814ebb /lib
parent2926d97dfb21448ad7cc5f68df1f347a3da0617f (diff)
change os.tmpDir() to os.tmpdir()
fixes deprecation warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 7ff039e..89ad91d 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)