YMetrika refactoring
This commit is contained in:
1 parent
f4008a4750
commit
2c9f5f08d4
1 file changed
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
function metrika(account) {
|
function script(account) {
|
||||||
return `
|
return `
|
||||||
<!-- Yandex.Metrika counter -->
|
<!-- Yandex.Metrika counter -->
|
||||||
(function (d, w, c) {
|
(function (d, w, c) {
|
||||||
@@ -32,5 +32,5 @@ function metrika(account) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const YMetrika = (props) => (
|
export const YMetrika = (props) => (
|
||||||
<script dangerouslySetInnerHTML={{ __html: metrika(props.account) }} />
|
<script dangerouslySetInnerHTML={{ __html: script(props.account) }} />
|
||||||
)
|
)
|
||||||
Reference in new issue
Block a user