Skip to content

Commit 0cf0235

Browse files
Kapil Tuptewarpm-azhar-mulla
Kapil Tuptewar
authored and
pm-azhar-mulla
committed
Supporting platform for floors module
1 parent b7d33e9 commit 0cf0235

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src_new/adapters/prebid.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,8 @@ function getFloorsConfiguration(prebidConfig){
10721072
url: CONFIG.getFloorJsonUrl()
10731073
},
10741074
additionalSchemaFields : {
1075-
browser : util.getBrowser
1075+
browser : util.getBrowser,
1076+
platform : util.getPltForFloor
10761077
}
10771078
}
10781079
}

src_new/util.js

+3
Original file line numberDiff line numberDiff line change
@@ -1948,3 +1948,6 @@ exports.getBrowser = function() {
19481948
}
19491949
return browserName;
19501950
}
1951+
exports.getPltForFloor = function() {
1952+
return refThis.getDevicePlatform().toString();
1953+
}

test/adapters/prebid.spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,8 @@ describe('ADAPTER: Prebid', function() {
952952
url: "externalFloor.json"
953953
},
954954
additionalSchemaFields : {
955-
browser : UTIL.getBrowser
955+
browser : UTIL.getBrowser,
956+
platform : UTIL.getPltForFloor
956957
}
957958
}
958959
function onSSOLogin() {};

0 commit comments

Comments
 (0)