Skip to content

Commit

Permalink
Update NasmediaAdmixer adapter (#2164)
Browse files Browse the repository at this point in the history
* add NasmediaAdmixer adapter for Perbid.js 1.0

* add NasmediaAdmixer adapter for Perbid.js 1.0

* add NasmediaAdmixer adapter for Perbid.js 1.0

* add NasmediaAdmixer adapter for Perbid.js 1.0

* add NasmediaAdmixer adapter for Perbid.js 1.0

* add NasmediaAdmixer adapter for Perbid.js 1.0

* update NasmediaAdmixer adapter

* update NasmediaAdmixer adapter
  • Loading branch information
NasmediaWebtech authored and jaiminpanchal27 committed Feb 22, 2018
1 parent 448d4db commit 32dccd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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: prebid@nasmedia.co.kr
```
Expand Down

0 comments on commit 32dccd4

Please sign in to comment.