Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup #33

Merged
merged 16 commits into from
Sep 3, 2022
Prev Previous commit
Next Next commit
menu fixup
  • Loading branch information
SenexCrenshaw committed Sep 3, 2022
commit 2ec6e77e4993a7e779d9ffd118fb817190a7d9f5
7 changes: 7 additions & 0 deletions ts/menu_ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -594,11 +594,18 @@ class Cell {
case "IMG":
element = document.createElement(this.childType);
element.setAttribute("alt", this.value);
<<<<<<< HEAD
element.setAttribute("channelID", this.id)

element.onerror = function (this: HTMLImageElement) {
showWarning(this.alt + " has a bad logo URL")
var channelNameID = this.attributes["channelID"].value;
=======
element.setAttribute("longdesc", this.id)
element.onerror = function () {
showWarning(this.alt + " has a bad logo URL")
var channelNameID = (this as HTMLImageElement).attributes["longdesc"].value;
>>>>>>> a9f55a1 (Fix Use M3U logo)
document.getElementById(channelNameID).style.color = "red";
this.src = getDefaultLogo()
};
Expand Down