Adds a player.pageUrl macro. This is intended as the URL at which the player has been embedded, whether directly or via an iframe. The name of the macro hopefully makes it clear that this is not an embed URL for the player itself.
If the player is in an iframe, this resolves to document.referrer, otherwise to window.location.href.
A test is only included for the iframe case for now, as the tests themselves run in an iframe.
Adds a
player.pageUrl
macro. This is intended as the URL at which the player has been embedded, whether directly or via an iframe. The name of the macro hopefully makes it clear that this is not an embed URL for the player itself.If the player is in an iframe, this resolves to
document.referrer
, otherwise towindow.location.href
.A test is only included for the iframe case for now, as the tests themselves run in an iframe.