Skip to content

A full-featured download manager.

Update utils.js to match latest changes

Gael Patarin482ccb3293b5
diff --git a/src/shared/utils.js b/src/shared/utils.js
index f6e61010..5141d677 100644
--- a/src/shared/utils.js
+++ b/src/shared/utils.js
@@ -148,7 +148,7 @@ export function getTaskFullPath (task) {
return result
}
- if (bittorrent.info && bittorrent.info.name) {
+ if (bittorrent && bittorrent.info && bittorrent.info.name) {
result = resolve(result, bittorrent.info.name)
return result
}