Skip to content

Commit dd87833

Browse files
committed
MOBILE-2178 scorm: Hide module spinner if WS call fails
1 parent 257fd97 commit dd87833

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

www/addons/mod/scorm/services/handlers.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ angular.module('mm.addons.mod_scorm')
153153
$scope.$on('$destroy', function() {
154154
statusObserver && statusObserver.off && statusObserver.off();
155155
});
156+
}).catch(function() {
157+
// Error getting SCORM, hide the spinner.
158+
$scope.spinner = false;
156159
});
157160
};
158161
};

0 commit comments

Comments
 (0)