Skip to content

Commit

Permalink
Merge pull request #636 from BranchMetrics/fix_INTENG-4678
Browse files Browse the repository at this point in the history
[DEVEX-960]: make safe property access for SafeAreaRequired
  • Loading branch information
Aaron Lopez authored Apr 8, 2019
2 parents 00215a0 + 04dcd0d commit 8095c63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/journeys_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ journeys_utils.animateBannerEntrance = function(banner) {
banner.style.top = '0';
}
else if (journeys_utils.position === 'bottom') {
if(!journeys_utils.journeyLinkData.journey_link_data['safeAreaRequired']) {
// check if safeAreaRequired is true or not
if (journeys_utils.journeyLinkData && journeys_utils.journeyLinkData['journey_link_data'] && !journeys_utils.journeyLinkData['journey_link_data']['safeAreaRequired']) {
banner.style.bottom = '0';
} else {
journeys_utils._dynamicallyRepositionBanner();
Expand Down

0 comments on commit 8095c63

Please sign in to comment.