Make callback optional for refreshInstalledApps()

This commit is contained in:
Johannes Zellner
2021-02-18 17:01:35 +01:00
parent 550d6b9868
commit bfb22c04b7

View File

@@ -1996,6 +1996,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
};
Client.prototype.refreshInstalledApps = function (callback) {
callback = callback || function (error) { if (error) console.error(error); };
var that = this;
this.getApps(function (error, apps) {