Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add description to RD module #3464

Merged
merged 3 commits into from
Jan 28, 2019
Merged

add description to RD module #3464

merged 3 commits into from
Jan 28, 2019

Conversation

mkendall07
Copy link
Member

Type of change

  • Other

Description of change

Just a comment explaining what the module does.

Copy link
Collaborator

@bretg bretg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would like to see a brief description on top of each function. It's not obvious to me what is the difference between an "origin", a "canonicalUrl", and "PubUrl" in the function names getAncestorOrigins, getCanonicalUrl, and getPubUrlStack

The terms used in the description of the refererInfo object also refer to "top url" (is that the canonical?) If "origin" is just a url, and canonical url is just the topmost url, would be clearer to use those terms.

   * @property {string} referer detected top url
   * @property {boolean} reachedTop whether prebid was able to walk upto top window or not
   * @property {number} numIframes number of iframes
   * @property {string} stack comma separated urls of all origins

@jaiminpanchal27
Copy link
Collaborator

@bretg I pushed some more comments to address your feedback.

One of the contributor requested to add canonical url in this module. #3221
Here is a good read i found if you are interested https://www.shopify.com/partners/blog/canonical-urls

Copy link
Collaborator

@bretg bretg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

much more clear - thanks Jaimin

@bretg bretg merged commit 0cb3e1a into master Jan 28, 2019
pedrolopezmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Mar 18, 2019
* add description to RD module

* adding some more comments to private functions
jacekburys-quantcast pushed a commit to jacekburys-quantcast/Prebid.js that referenced this pull request May 15, 2019
* add description to RD module

* adding some more comments to private functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants