Skip to content

Fix issue with limited browser const support triggered by code in the Sharethrough Adapter #3417

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

Merged
merged 2 commits into from
Jan 4, 2019

Conversation

javadreamer
Copy link
Contributor

Type of change

  • [x ] Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • [ x] Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Does this change affect user-facing APIs or examples documented on http://prebid.org?
  • Other

Description of change

Fixes browser compatibility issue with Sharethrough Adapter. Replaces the hardcoding of const with var

A const in a string literal like this won't be correctly transpiled
by babel, so we'll be limited by the browser support matrix for
const.

tjefferson08 and others added 2 commits December 10, 2018 11:20
A `const` in a string literal like this won't be correctly transpiled
by babel, so we'll be limited by the browser support matrix for
`const`

Fix: harcode a `var` here to be more permissive and widely supported
STR adapter should not hardcode `const` into script content
@harpere harpere added the LGTM label Jan 4, 2019
@harpere harpere merged commit 26e88f4 into prebid:master Jan 4, 2019
pedrolopezmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Mar 18, 2019
)

A `const` in a string literal like this won't be correctly transpiled
by babel, so we'll be limited by the browser support matrix for
`const`

Fix: harcode a `var` here to be more permissive and widely supported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants