diff --git a/src/scripts/services/ariaNgTitleService.js b/src/scripts/services/ariaNgTitleService.js index 8b1b71a..5770c69 100644 --- a/src/scripts/services/ariaNgTitleService.js +++ b/src/scripts/services/ariaNgTitleService.js @@ -129,11 +129,11 @@ }, getFinalTitleByGlobalStat: function (globalStat) { var context = { - downloadingCount: globalStat.numActive, - waitingCount: globalStat.numWaiting, - stoppedCount: globalStat.numStopped, - downloadSpeed: globalStat.downloadSpeed, - uploadSpeed: globalStat.uploadSpeed + downloadingCount: (globalStat ? globalStat.numActive : 0), + waitingCount: (globalStat ? globalStat.numWaiting : 0), + stoppedCount: (globalStat ? globalStat.numStopped : 0), + downloadSpeed: (globalStat ? globalStat.downloadSpeed : 0), + uploadSpeed: (globalStat ? globalStat.uploadSpeed : 0) }; return this.getFinalTitle(context); diff --git a/src/views/settings-ariang.html b/src/views/settings-ariang.html index 4cfe5fb..60f41b3 100644 --- a/src/views/settings-ariang.html +++ b/src/views/settings-ariang.html @@ -1,15 +1,20 @@