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
ae1934af
Commit
ae1934af
authored
Feb 25, 2021
by
yann300
Committed by
Liana Husikyan
Mar 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use checkbox
parent
b41040ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
app.js
apps/remix-ide/src/app.js
+14
-11
No files found.
apps/remix-ide/src/app.js
View file @
ae1934af
...
...
@@ -351,31 +351,34 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
if
(
!
registry
.
get
(
'config'
).
api
.
exists
(
'settings/matomo-analytics'
))
{
// Ask to opt in to Matomo for remix, remix-alpha and remix-beta
//if (window.location.hostname.includes('.ethereum.org')) {
// if (window.location.hostname.includes('.ethereum.org')) {
const
selectInput
=
yo
`<input type="checkbox" checked='checked' />`
modalDialog
(
'Help us to improve our IDE!'
,
yo
`<div>
>
p>Remix IDE uses <a href="https://matomo.org">Matomo</a>, an open source data analytics software to improve the use of our website.</p>
<
p>Remix IDE uses <a href="https://matomo.org">Matomo</a>, an open source data analytics software to improve the use of our website.</p>
<p>All data collected through Matomo is stored at our own server - no data is given to third parties.</p>
<p>We do not store any personally identifiable information (PII).</p>
<p>You can change your choice in the Settings panel.</p>
${
selectInput
}
</div>`
,
{
label
:
"Sure"
,
label
:
'Apply'
,
fn
:
()
=>
{
settings
.
updateMatomoAnalyticsChoice
(
true
)
_paq
.
push
([
'forgetUserOptOut'
])
settings
.
updateMatomoAnalyticsChoice
(
selectInput
.
checked
)
if
(
selectInput
.
checked
)
{
_paq
.
push
([
'forgetUserOptOut'
])
}
else
{
_paq
.
push
([
'optUserOut'
])
}
}
},
{
label
:
'Decline'
,
fn
:
()
=>
{
settings
.
updateMatomoAnalyticsChoice
(
false
)
_paq
.
push
([
'optUserOut'
])
}
label
:
null
,
fn
:
null
}
)
//}
//
}
}
// CONTENT VIEWS & DEFAULT PLUGINS
const
compileTab
=
new
CompileTab
(
...
...
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