Skip to content

Commit 1e550d7

Browse files
authored
add matomo
1 parent 9296ca2 commit 1e550d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import React, { useState, useRef, useEffect, useReducer } from 'react' // eslint
55
import { OverlayTrigger, Tooltip } from 'react-bootstrap' // eslint-disable-line
66
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'
77
import './remix-ui-tabs.css'
8+
const _paq = window._paq = window._paq || []
89

910
/* eslint-disable-next-line */
1011
export interface TabsUIProps {
@@ -152,8 +153,10 @@ export const TabsUI = (props: TabsUIProps) => {
152153
const content = await props.plugin.call('fileManager', "readFile", path)
153154
if (tabsState.currentExt === 'js' || tabsState.currentExt === 'ts') {
154155
await props.plugin.call('scriptRunner', 'execute', content)
156+
_paq.push(['trackEvent', 'editor', 'clickRunFromEditor', tabsState.currentExt])
155157
} else if (tabsState.currentExt === 'sol' || tabsState.currentExt === 'yul') {
156158
await props.plugin.call('solidity', 'compile', path)
159+
_paq.push(['trackEvent', 'editor', 'clickRunFromEditor', tabsState.currentExt])
157160
}
158161
}}
159162
>

0 commit comments

Comments
 (0)