'use strict';
define(['jquery'], function ($) {
    return {
        init: function () {
            var inIframe = window !== window.top && typeof window.top.dnn !== "undefined";

            var tabId = inIframe ? window.top.dnn.getVar('sf_tabId') : '';
            var siteRoot = inIframe ? window.top.dnn.getVar('sf_siteRoot') : '';
            var antiForgeryToken = inIframe ? window.top.document.getElementsByName('__RequestVerificationToken')[0].value : '';

            var config = $.extend({}, {
                tabId: tabId,
                siteRoot: siteRoot,
                antiForgeryToken: antiForgeryToken
            }, inIframe ? window.parent['personaBarSettings'] : {});

            return config;   
       } 
    };
});
@@ -119,23 +119,15 @@
 ndow
- !== window.top
+.parent
  && 
@@ -136,27 +136,30 @@
 peof window.
-top
+parent
 .dnn !== %22un
@@ -203,35 +203,38 @@
 Iframe ? window.
-top
+parent
 .dnn.getVar('sf_
@@ -292,19 +292,22 @@
  window.
-top
+parent
 .dnn.get
@@ -388,11 +388,14 @@
 dow.
-top
+parent
 .doc

Fix PersonaBar loading when within an iframe