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
e55dc107
Commit
e55dc107
authored
Feb 23, 2021
by
lianahus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring
parent
56e19147
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
index.html
apps/remix-ide/src/index.html
+7
-10
No files found.
apps/remix-ide/src/index.html
View file @
e55dc107
...
...
@@ -34,9 +34,12 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, user-scalable=no"
>
<!-- Matomo -->
<script
type=
"text/javascript"
>
if
(
window
.
location
.
hostname
===
'remix.ethereum.org'
||
window
.
location
.
hostname
===
'remix-alpha.ethereum.org'
||
window
.
location
.
hostname
===
'remix-beta.ethereum.org'
)
{
const
domains
=
{
'remix-alpha.ethereum.org'
:
27
,
'remix-beta.ethereum.org'
:
25
,
'remix.ethereum.org'
:
23
}
if
(
domains
[
window
.
location
.
hostname
])
{
var
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq
.
push
([
'disableCookies'
]);
...
...
@@ -45,13 +48,7 @@
(
function
()
{
var
u
=
"https://matomo.ethereum.org/"
;
_paq
.
push
([
'setTrackerUrl'
,
u
+
'matomo.php'
])
if
(
window
.
location
.
hostname
===
'remix.ethereum.org'
)
{
_paq
.
push
([
'setSiteId'
,
'23'
])
}
else
if
(
window
.
location
.
hostname
===
'remix-alpha.ethereum.org'
)
{
_paq
.
push
([
'setSiteId'
,
'27'
])
}
else
if
(
window
.
location
.
hostname
===
'remix-beta.ethereum.org'
)
{
_paq
.
push
([
'setSiteId'
,
'25'
])
}
_paq
.
push
([
'setSiteId'
,
domains
[
window
.
location
.
hostname
]])
var
d
=
document
,
g
=
d
.
createElement
(
'script'
),
s
=
d
.
getElementsByTagName
(
'script'
)[
0
]
g
.
type
=
'text/javascript'
;
g
.
async
=
true
;
g
.
src
=
u
+
'matomo.js'
;
s
.
parentNode
.
insertBefore
(
g
,
s
)
})()
...
...
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