Fix music notifications

pull/155/head
Simon Weis 2020-03-28 13:30:13 +01:00
parent b7b5d6764b
commit 33a88627d9
1 changed files with 4 additions and 4 deletions

View File

@ -153,10 +153,10 @@
if (state.music == gb.musicState.PLAY) { if (state.music == gb.musicState.PLAY) {
var content = { var content = {
title: "Now playing", title: state.musicInfo.artist,
icon: "gbridge-music-ico.img", icon: "gbridge-music-ico.img",
header: state.musicInfo.artist, header: state.musicInfo.track,
body: state.musicInfo.track body:""
}; };
notification.show(40, content); notification.show(40, content);
@ -194,7 +194,7 @@
state.musicInfo = event; state.musicInfo = event;
break; break;
case "musicstate": case "musicstate":
state.musicInfo = event.state; state.music = event.state;
updateMusicInfo(); updateMusicInfo();
break; break;
case "call": case "call":