Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
d82f398c
Unverified
Commit
d82f398c
authored
Mar 23, 2021
by
yann300
Committed by
GitHub
Mar 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Matomo (#1009)
parent
359e1cb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
app.js
apps/remix-ide/src/app.js
+2
-0
settings-tab.js
apps/remix-ide/src/app/tabs/settings-tab.js
+4
-0
No files found.
apps/remix-ide/src/app.js
View file @
d82f398c
...
...
@@ -354,6 +354,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
const
onAcceptMatomo
=
()
=>
{
_paq
.
push
([
'forgetUserOptOut'
])
// @TODO remove next line when https://github.com/matomo-org/matomo/commit/9e10a150585522ca30ecdd275007a882a70c6df5 is used
document
.
cookie
=
'mtm_consent_removed=; expires=Thu, 01 Jan 1970 00:00:01 GMT;'
settings
.
updateMatomoAnalyticsChoice
(
true
)
const
el
=
document
.
getElementById
(
'modal-dialog'
)
el
.
parentElement
.
removeChild
(
el
)
...
...
apps/remix-ide/src/app/tabs/settings-tab.js
View file @
d82f398c
...
...
@@ -131,6 +131,8 @@ module.exports = class SettingsTab extends ViewPlugin {
if
(
this
.
config
.
get
(
'settings/matomo-analytics'
))
{
this
.
_view
.
useMatomoAnalytics
.
setAttribute
(
'checked'
,
''
)
_paq
.
push
([
'forgetUserOptOut'
])
// @TODO remove next line when https://github.com/matomo-org/matomo/commit/9e10a150585522ca30ecdd275007a882a70c6df5 is used
document
.
cookie
=
'mtm_consent_removed=; expires=Thu, 01 Jan 1970 00:00:01 GMT;'
}
else
{
_paq
.
push
([
'optUserOut'
])
}
...
...
@@ -234,6 +236,8 @@ module.exports = class SettingsTab extends ViewPlugin {
elementStateChanged
(
self
.
_view
.
useMatomoAnalyticsLabel
,
isChecked
)
if
(
event
.
target
.
checked
)
{
_paq
.
push
([
'forgetUserOptOut'
])
// @TODO remove next line when https://github.com/matomo-org/matomo/commit/9e10a150585522ca30ecdd275007a882a70c6df5 is used
document
.
cookie
=
'mtm_consent_removed=; expires=Thu, 01 Jan 1970 00:00:01 GMT;'
}
else
{
_paq
.
push
([
'optUserOut'
])
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment