From f34cf219f711c54573dbd7bcf650e93e31328340 Mon Sep 17 00:00:00 2001 From: Listen 1 Date: Fri, 16 Feb 2018 00:19:02 +0800 Subject: [PATCH] fix icon status change not working bug --- js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 7bb354c..86dcf62 100644 --- a/js/app.js +++ b/js/app.js @@ -826,10 +826,10 @@ $scope.$on('music:isPlaying', function(event, data) { if (data) { - $rootScope.page_title = '▶' + $rootScope.page_title.slice(1); + $rootScope.page_title = '▶ ' + $rootScope.page_title.slice($rootScope.page_title.indexOf(' ')); } else { - $rootScope.page_title = '❚❚' + $rootScope.page_title.slice(1); + $rootScope.page_title = '❚❚ ' + $rootScope.page_title.slice($rootScope.page_title.indexOf(' ')); }; if (!lastfm.isAuthorized()) { return;