Skip to content

Commit ab7855a

Browse files
committed
disable cookies on settings disable
1 parent f0cfebf commit ab7855a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

apps/remix-ide/src/app/tabs/locales/en/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"settings.servicesDescription": "Configure the settings for connected services, including Github, IPFS, Swarm, Sindri and Etherscan.",
6060
"settings.matomoAnalyticsNoCookies": "Matomo Analytics (necessary, no cookies)",
6161
"settings.matomoAnalyticsNoCookiesDescription": "Help improve Remix with anonymous usage data.",
62-
"settings.matomoAnalyticsWithCookies": "Matomo Analytics (with cookies)",
62+
"settings.matomoAnalyticsWithCookies": "Matomo Performance Analytics (with cookies)",
6363
"settings.matomoAnalyticsWithCookiesDescription": "Enable tracking with cookies for more detailed insights.",
6464
"settings.aiCopilot": "AI Copilot",
6565
"settings.aiCopilotDescription": "AI Copilot assists with code suggestions and improvements.",

apps/remix-ide/src/app/tabs/settings-tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const _paq = (window._paq = window._paq || [])
1515
const profile = {
1616
name: 'settings',
1717
displayName: 'Settings',
18-
methods: ['get', 'updateCopilotChoice', 'getCopilotSetting'],
18+
methods: ['get', 'updateCopilotChoice', 'getCopilotSetting', 'updateMatomoPerfAnalyticsChoice'],
1919
events: [],
2020
icon: 'assets/img/settings.webp',
2121
description: 'Remix-IDE settings',

libs/remix-ui/settings/src/lib/settings-section.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,16 @@ export const SettingsSectionUI: React.FC<SettingsSectionUIProps> = ({ plugin, se
3939
const handleToggle = (name: string) => {
4040
if (state[name]) {
4141
const newValue = !state[name].value
42-
4342
dispatch({ type: 'SET_LOADING', payload: { name: name } })
4443
dispatch({ type: 'SET_VALUE', payload: { name: name, value: newValue } })
45-
// _paq.push(['disableCookies'])
4644
if (!newValue && formUIData[name]) {
4745
Object.keys(formUIData[name]).forEach((key) => {
4846
dispatch({ type: 'SET_VALUE', payload: { name: key, value: '' } })
4947
})
5048
dispatch({ type: 'SET_TOAST_MESSAGE', payload: { value: 'Credentials removed' } })
5149
}
5250
if (name === 'copilot/suggest/activate') plugin.emit('copilotChoiceUpdated', newValue)
51+
if (name === 'matomo-perf-analytics') plugin.call('settings', 'updateMatomoPerfAnalyticsChoice', newValue)
5352
if (name === 'text-wrap') plugin.emit('textWrapChoiceUpdated', newValue)
5453
} else {
5554
console.error('Setting does not exist: ', name)

0 commit comments

Comments
 (0)