summaryrefslogtreecommitdiff
path: root/source/features/embed-gist-via-iframe.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/embed-gist-via-iframe.tsx')
-rw-r--r--source/features/embed-gist-via-iframe.tsx4
1 files changed, 2 insertions, 2 deletions
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');