Changed around line 1
- let channelName = document.querySelector(".channel-name")
Changed around line 218: class Togger {
- if (this.currentChannel.status === "removed")
- return this.nextChannel()
+ if (this.currentChannel.status === "removed") return this.nextChannel()
- if (this.currentChannel.status === "removed")
- return this.previousChannel()
+ if (this.currentChannel.status === "removed") return this.previousChannel()
Changed around line 295: class Togger {
- channelName.innerHTML = `${current.deepLink} ↺`
+ this.updateChannelTitle()
Changed around line 323: class Togger {
- updateChannelDisplay(videoData, isLive) {
+ updateChannelTitle(isLive) {
-
- const liveIndicator = isLive
- ? '● LIVE'
- : 'OFF-AIR'
+ let liveIndicator = "↺"
+ if (isLive !== undefined)
+ liveIndicator = isLive
+ ? '● LIVE'
+ : 'OFF-AIR'
- channelName.innerHTML = `
+ document.querySelector(".channel-name").innerHTML = `
Changed around line 425: class Togger {
- this.updateChannelDisplay(videoData, isLive)
+ this.updateChannelTitle(isLive)