Skip to content

Commit

Permalink
composer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hegelespaul committed Jul 17, 2024
1 parent 6b569c8 commit 9387215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ function generateNewHTMLTune(title, composer, sections, key, timesignature, vide
iframe.className = 'floating-video';
iframe.width = '300'; // Adjust width as needed
iframe.height = '169'; // Adjust height as needed
iframe.src = "${video_url.replace('watch?v=', 'embed/')}";
iframe.src = "${video_url.replace('watch?v=', 'embed/').replace('youtube.com', 'youtube-nocookie.com')}"
iframe.frameborder = '0';
iframe.allow = 'accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture';
iframe.allowfullscreen = true;
Expand Down Expand Up @@ -472,7 +472,7 @@ function Composer(composer) {
newDiv.className = 'tune';

const titleLink = document.createElement('a');
titleLink.href = generateNewHTMLTune(tune.title, tune.composer, tune.sections, tune.timesignature, tune.url);
titleLink.href = generateNewHTMLTune(tune.title, tune.composer, tune.sections, tune.key, tune.timesignature, tune.url);
titleLink.textContent = tune.title;

const composerSpan = document.createElement('span');
Expand Down

0 comments on commit 9387215

Please sign in to comment.