From 095d723885a862132b1b420ed41a36a6b1aebaa5 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Mon, 14 Mar 2022 12:10:47 +0800 Subject: Update all dependencies + lint some (#5503) --- source/features/embed-gist-via-iframe.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/features/embed-gist-via-iframe.tsx') diff --git a/source/features/embed-gist-via-iframe.tsx b/source/features/embed-gist-via-iframe.tsx index 92838776..c21f761d 100644 --- a/source/features/embed-gist-via-iframe.tsx +++ b/source/features/embed-gist-via-iframe.tsx @@ -9,8 +9,8 @@ function init(): void { const embedViaIframe = embedViaScript.cloneNode(true); // Remove analytics attributes - embedViaIframe.removeAttribute('data-hydro-click'); - embedViaIframe.removeAttribute('data-hydro-click-hmac'); + delete embedViaIframe.dataset.hydroClick; + delete embedViaIframe.dataset.hydroClickHmac; // Set required content embedViaIframe.setAttribute('aria-checked', 'false'); -- cgit v1.2.3