Skip to content

Commit

Permalink
Fix b-page documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbaum committed Jun 24, 2015
1 parent 0fc839e commit 80a5d8f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions blocks-common/b-page/b-page.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ module.exports = function(bh) {

В поле `csp` BEMJSON блока. Значение каждой директивы – массив разрешенных источников. Рекомендуемый способ.

```javacsript
```javascript
({
block: 'b-page',
csp: {
Expand All @@ -296,7 +296,7 @@ module.exports = function(bh) {
'from-bemjson.net',
'example.com'
],
style-src': [
'style-src': [
'mystyle.net'
]
}
Expand All @@ -306,7 +306,7 @@ module.exports = function(bh) {

Список источников в каждой директиве можно гибко настроить:

```javacsript
```javascript
({
block: 'b-page',
csp: {
Expand All @@ -315,7 +315,7 @@ module.exports = function(bh) {
'from-bemjson.net',
'example.com'
],
style-src': [
'style-src': [
'self',
'data: example.com'
]
Expand Down Expand Up @@ -379,10 +379,11 @@ module.exports = function(bh) {
Передать свое значение `nonce` можно в поле элемента `csp` BEMJSON блока:

```js
// TODO: https://st.yandex-team.ru/ISLROMOCHKA-229
({
block: 'b-page',
nonce: 'EDNnf03nceIOfn39fn3e9h3sdfa'
csp: {
nonce: 'EDNnf03nceIOfn39fn3e9h3sdfa'
}
});
```

Expand Down

0 comments on commit 80a5d8f

Please sign in to comment.