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

Fix invalid reference to "global" #4412

Merged
merged 1 commit into from
Nov 1, 2019

Conversation

monofonik
Copy link
Contributor

@monofonik monofonik commented Nov 1, 2019

Type of change

  • Bugfix

Description of change

This change removes a reference to global, which causes an exception when the adapter code loads on non-mobile devices.

Note that there is no additional tests added as part of this PR - the existing tests DO cover the affected line, however it appears that they DO NOT fail when executed on ChromeHeadless. I can only assume that ChromeHeadless exposes a global object in simiar fashion to NodeJS, resulting in the existing tests passing.

https://nodejs.org/api/globals.html#globals_global

@harpere harpere merged commit 328cc3a into prebid:master Nov 1, 2019
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.

2 participants