* Returns the AMP page href from an AMP Cache. Otherwise returns empty string. * * @return {string} * @private
()
| 26 | * @private |
| 27 | */ |
| 28 | function getAmpCacheHref() { |
| 29 | for (const index in globals.ampCaches) { |
| 30 | const ampCache = globals.ampCaches[index]; |
| 31 | if (ampCache.isAmpCache()) { |
| 32 | return ampCache.getAmpHref(); |
| 33 | } |
| 34 | } |
| 35 | return ''; |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Determine if <link rel="amphtml" href="..."> exists in the page and |