From c32c74c90a06e5d7425db1b41d3755c326a8eed5 Mon Sep 17 00:00:00 2001 From: Jakub Jankiewicz Date: Thu, 17 Oct 2024 10:38:04 +0200 Subject: [PATCH] (docs) remove umami --- docs/src/components/Interpreter/index.tsx | 4 ---- docs/src/theme/Footer/Layout/index.js | 1 - 2 files changed, 5 deletions(-) diff --git a/docs/src/components/Interpreter/index.tsx b/docs/src/components/Interpreter/index.tsx index 57f6a627..93bedd32 100644 --- a/docs/src/components/Interpreter/index.tsx +++ b/docs/src/components/Interpreter/index.tsx @@ -16,11 +16,7 @@ export interface TerminalProps extends CSSProperties { } function track(type: string, command: string) { - const umami = globalThis.umami as any; const _paq = globalThis._paq as PiwikTrack; - if (umami) { - umami.track('REPL', [type, command]); - } _paq.push(['trackEvent', 'REPL', type, command]); } diff --git a/docs/src/theme/Footer/Layout/index.js b/docs/src/theme/Footer/Layout/index.js index 2637be27..8a8e7e46 100644 --- a/docs/src/theme/Footer/Layout/index.js +++ b/docs/src/theme/Footer/Layout/index.js @@ -56,7 +56,6 @@ owa_cmds.push(['trackClicks']); _paq.push(['setSiteId', w]); g.type='text/javascript';g.async=true;g.defer=true;g.src=i;s.parentNode.insertBefore(g,s); })('https://jcubic.piwik.pro/ppms.php','https://jcubic.containers.piwik.pro/ppms.js','018719ec\u002D6793\u002D4a2d\u002D92f9\u002Db8b88a01d43c',document)`}}/> - ); }