Skip to content

Commit

Permalink
ATP-475 fix Json parse
Browse files Browse the repository at this point in the history
  • Loading branch information
fiacremccullough committed Aug 17, 2015
1 parent 8b83936 commit 8c433c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/rxp-hpp.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ var RealexHpp = (function() {

// check for iframe resize values
if (event.data && JSON.parse(event.data).iframe) {
var iframeWidth = JSON.parse(event.data).iframe.width;
var iframeHeight = JSON.parse(event.data).iframe.height;
var jsonData = JSON.parse(event.data);
var iframeWidth = jsonData.iframe.width;
var iframeHeight = jsonData.iframe.height;

var iFrame = document.getElementById("rxp-frame-" + randomId);
iFrame.setAttribute("width", iframeWidth);
Expand Down

0 comments on commit 8c433c8

Please sign in to comment.