diff options
author | 2022-03-14 12:10:47 +0800 | |
---|---|---|
committer | 2022-03-14 12:10:47 +0800 | |
commit | 095d723885a862132b1b420ed41a36a6b1aebaa5 (patch) | |
tree | 0337e91f0e1dfc969ff6596f24bb83767526cf6a /source/features/embed-gist-via-iframe.tsx | |
parent | c76806da107bc03d2d4e6a2b333da2f4184b879d (diff) | |
download | refined-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.tsx | 4 |
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'); |