change symbol in page title according to playing status (#105)

This commit is contained in:
Sibo Jia 2018-02-15 10:48:39 +08:00 committed by Listen 1
parent f9bceeb936
commit fdf003e7a9

View File

@ -825,6 +825,12 @@
});
$scope.$on('music:isPlaying', function(event, data) {
if (data) {
$rootScope.page_title = '▶' + $rootScope.page_title.slice(1);
}
else {
$rootScope.page_title = '⏸' + $rootScope.page_title.slice(1);
};
if (!lastfm.isAuthorized()) {
return;
}