derat/nup

Song-change notifications display album rather than song title

derat opened this issue · 0 comments

derat commented

music-player.js does the following:

      const options = { body: `${song.album}\n${formatTime(song.length)}` };
      if (song.coverFilename) {
        options.icon = getScaledCoverUrl(song.coverFilename);
      }
      this.notification_ = new Notification(
        `${song.artist}\n${song.title}`,
        options
      );

At least as of Chrome 93, it looks like multiline titles get elided, so the notification ends up like this instead:

Screenshot 2021-09-17 13 12 45