From 1fa89dd6027ae218b809beb999033f5a80195a19 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Sat, 10 Sep 2022 18:16:03 -0700 Subject: [PATCH] no preventDefault needed with the new href removal --- src/lite-yt-embed.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lite-yt-embed.js b/src/lite-yt-embed.js index cdb9f0c..5701989 100644 --- a/src/lite-yt-embed.js +++ b/src/lite-yt-embed.js @@ -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') || []);