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

Update NasmediaAdmixer adapter #2164

Merged
merged 9 commits into from
Feb 22, 2018
10 changes: 5 additions & 5 deletions modules/nasmediaAdmixerBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ export const spec = {

function getOsType() {
let ua = navigator.userAgent.toLowerCase();
let os = ['android', 'ios', 'mac', 'linux', 'window', 'etc'];
let regexp_os = [/android/i, /iphone|ipad/i, /mac/i, /linux/i, /window/i, ''];
let os = ['android', 'ios', 'mac', 'linux', 'window'];
let regexp_os = [/android/i, /iphone|ipad/i, /mac/i, /linux/i, /window/i];

return regexp_os.some((tos, idx) => {
if (ua.match(tos)) {
return os.find((tos, idx) => {
if (ua.match(regexp_os[idx])) {
return os[idx];
}
});
}) || 'etc';
}

function getSize(sizes) {
Expand Down
2 changes: 1 addition & 1 deletion modules/nasmediaAdmixerBidAdapter.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Overview

```
Module Name: NasmeidaAdmixer Bidder Adapter
Module Name: NasmediaAdmixer Bidder Adapter
Module Type: Bidder Adapter
Maintainer: [email protected]
```
Expand Down