Skip to content

Commit 0e3df75

Browse files
committed
Merge branch 'main' of github.com:ampproject/amphtml
2 parents d707e5b + 217cc51 commit 0e3df75

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

ads/vendors/myua.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export function myua(global, data) {
1111
informerTag.setAttribute('data-top-iid', data.iid);
1212
global.document.body.appendChild(informerTag);
1313

14-
const demoSuffix = data.demo ? 'dev.' : '';
14+
const env = data.env ? `${data.env}.` : '';
1515
const scriptTag = global.document.createElement('script');
16-
scriptTag.src = `https://amp.top-js-metrics.top.${demoSuffix}my.ua/script.js`;
16+
scriptTag.src = `https://amp.top-js-metrics.top.${env}my.ua/script.js`;
1717
scriptTag.setAttribute('async', 'true');
1818
scriptTag.setAttribute('data-top-sid', data.sid);
1919

ads/vendors/myua.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ For details on the configuration semantics, please contact the ad network or ref
2626

2727
### Optional parameters
2828

29-
- `data-demo`
29+
- `data-env`
3030
- `data-options`

examples/amp-ad/ads.amp.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ <h2>myTarget</h2>
15261526
</amp-ad>
15271527

15281528
<h2>myua</h2>
1529-
<amp-ad width="300" height="400" type="myua" data-sid="3" data-iid="3" data-demo="true">
1529+
<amp-ad width="300" height="400" type="myua" data-sid="3" data-iid="3" data-env="dev">
15301530
</amp-ad>
15311531

15321532
<h2>myWidget</h2>

0 commit comments

Comments
 (0)