-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
create some hooks and modify adServerManager function #3438
Conversation
src/prebid.js
Outdated
} | ||
|
||
if (mediaTypes && mediaTypes.native) { | ||
const native = mediaTypes.native; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
native
as an identifier or object property can cause obscure issues because it was a reserved keyword in ECMAScript v3 -- may be a good time to update these references (in source files only, tests are fine). See #1621 for more info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the heads-up; I pushed a commit to rename this variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* create hooks and modify adservermanager function * remove comment * modify the import path for hook file * move checkAdUnitSetup and refactor video.js hook * update hook code to use new API * change hooks to use sync type * add adpod mediatype and rename native variable * remove unused import from test file * remove adpod reference in utils to avoid merge conflict
Type of change
Description of change
This PR introduces a set of changes that's meant to lay-out some of the groundwork for #3379
Summary of the changes:
checkBidRequestSizes
function to more generic namebuildVideoUrl
property inadServerManager.js
; now will support any property that's registered.