summaryrefslogtreecommitdiff
path: root/source/features/embed-gist-via-iframe.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2022-03-14 12:10:47 +0800
committerGravatar GitHub <noreply@github.com> 2022-03-14 12:10:47 +0800
commit095d723885a862132b1b420ed41a36a6b1aebaa5 (patch)
tree0337e91f0e1dfc969ff6596f24bb83767526cf6a /source/features/embed-gist-via-iframe.tsx
parentc76806da107bc03d2d4e6a2b333da2f4184b879d (diff)
downloadrefined-github-095d723885a862132b1b420ed41a36a6b1aebaa5.tar.gz
refined-github-095d723885a862132b1b420ed41a36a6b1aebaa5.tar.zst
refined-github-095d723885a862132b1b420ed41a36a6b1aebaa5.zip
Update all dependencies + lint some (#5503)
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');