Skip to content

Commit

Permalink
fix TS3 lint
Browse files Browse the repository at this point in the history
  • Loading branch information
micmro committed Sep 3, 2018
1 parent ad29232 commit 42eea0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/waterfall/details-overlay/overlay-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class OverlayManager {
// if overlay has a preview image show it
const previewImg = infoOverlay.querySelector("img.preview") as HTMLImageElement;
if (previewImg && !previewImg.src) {
previewImg.setAttribute("src", previewImg.attributes.getNamedItem("data-src").value);
previewImg.setAttribute("src", (previewImg.attributes.getNamedItem("data-src") || { value: "" }).value);
}
(infoOverlay.querySelector("a") as HTMLAnchorElement)
.addEventListener("keydown", OverlayManager.firstElKeypress);
Expand Down

0 comments on commit 42eea0d

Please sign in to comment.