Skip to content

Commit 20e9767

Browse files
Merge pull request #7 from TheDrillDown/dev
2 parents 6e7d814 + ffee1f9 commit 20e9767

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

script.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,15 @@ document.addEventListener("DOMContentLoaded", () => {
215215
if (slideAsset) {
216216
slideDeckLink.href = slideAsset.browser_download_url;
217217
slideDeckLink.download = "";
218+
} else {
218219
slideDeckLink.href = video.release_url;
219220
slideDeckLink.target = "_blank";
220-
slideDeckLink.textContent = "Download Slide Deck";
221-
slideDeckLink.className = "link-button slidedeck-button";
222-
leftButtonGroup.appendChild(slideDeckLink);
223221
}
224222

223+
slideDeckLink.textContent = "Download Slide Deck";
224+
slideDeckLink.className = "link-button slidedeck-button";
225+
leftButtonGroup.appendChild(slideDeckLink);
226+
225227
// Download video link (on left)
226228
const videoLink = document.createElement("a");
227229
videoLink.href = video.url;

0 commit comments

Comments
 (0)