Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
patmmccann authored Jul 9, 2024
1 parent b91a08b commit db9d61b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/riseUtils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ export function isSyncMethodAllowed(syncRule, bidderCode) {
return isInclude && contains(bidders, bidderCode);
}

export function getEndpoint(testMode, baseUrl, modes) {
return testMode
? `${baseUrl}${modes.TEST}`
: `${baseUrl}${modes.PRODUCTION}`;
export function getEndpoint(testMode, baseUrl, MODES) {
const url = baseUrl.endsWith('/') ? baseUrl : `${baseUrl}/`;
return testMode ? `${url}${MODES.TEST}` : `${url}${MODES.PRODUCTION}`;
}


export function getDeviceType(ua) {
if (/ipad|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(ua.toLowerCase())) {
return '5';
Expand Down

0 comments on commit db9d61b

Please sign in to comment.