Skip to content

Commit

Permalink
no preventDefault needed with the new href removal
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Sep 11, 2022
1 parent 185af94 commit 1fa89dd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lite-yt-embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ class LiteYTEmbed extends HTMLElement {

async addIframe(){
if (this.classList.contains('lyt-activated')) return;
e.preventDefault();
this.classList.add('lyt-activated');

const params = new URLSearchParams(this.getAttribute('params') || []);
Expand Down

0 comments on commit 1fa89dd

Please sign in to comment.