* Gets the sentinel string. * @param {!Element} iframe The iframe. * @param {boolean=} opt_is3P set to true if the iframe is 3p. * @return {string} Sentinel string. * @private
(iframe, opt_is3P)
| 396 | * @private |
| 397 | */ |
| 398 | function getSentinel_(iframe, opt_is3P) { |
| 399 | return opt_is3P ? iframe.getAttribute('data-amp-3p-sentinel') : 'amp'; |
| 400 | } |
| 401 | |
| 402 | /** |
| 403 | * JSON parses event.data if it needs to be |
no test coverage detected