This commit is contained in:
Girish Ramakrishnan
2019-10-11 14:55:19 -07:00
parent 0e386d33b0
commit 36028632ac
3 changed files with 3 additions and 7 deletions

View File

@@ -45,9 +45,9 @@ angular.module('Application').controller('AppsController', ['$scope', '$timeout'
};
Client.onReady(function () {
Client.refreshInstalledApps(); // refresh the new list immediately when switching from another view (appstore)
Client.refreshInstalledApps(function () {}); // refresh the new list immediately when switching from another view (appstore)
var refreshAppsTimer = $interval(Client.refreshInstalledApps.bind(Client), 5000);
var refreshAppsTimer = $interval(Client.refreshInstalledApps.bind(Client, function () {}), 5000);
$scope.$on('$destroy', function () {
$interval.cancel(refreshAppsTimer);
});