Skip to content

Commit de4aa63

Browse files
Merge pull request #40 from adaptlearning/issue/39
Fix: Removing 'top.'' from external transcript onclick action [#39]
2 parents b2e7876 + 73edf35 commit de4aa63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/youtube.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
{{/if}}
5050

5151
{{#if _transcript._externalTranscript}}
52-
<button class="youtube__transcript-btn youtube__transcript-btn-external js-youtube-external-transcript-click" onclick="top.window.open('{{_transcript.transcriptLink}}')">
52+
<button class="youtube__transcript-btn youtube__transcript-btn-external js-youtube-external-transcript-click" onclick="window.open('{{_transcript.transcriptLink}}')">
5353
<span class="youtube__transcript-btn-text">
5454
{{#if _transcript.transcriptLinkButton}}
5555
{{_transcript.transcriptLinkButton}}

0 commit comments

Comments
 (0)