1/* eslint-disable */ 2(function (exports) { 3 'use strict'; 4 5 const PageObject = { 6 getRootWindow() { 7 return PageObject.getTopWindowOfCurrentHost(window); 8 }, 9 isCrossOriginObject(currentWindow) { 10 try { 11 void currentWindow.location.host; 12 } catch { 13 // cross-origin object 14 return true; 15 } 16 return false; 17 }, 18 getTopWindowOfCurrentHost(currentWindow) { 19 if (!PageObject.isCrossOriginObject(currentWindow.parent) && currentWindow.parent !== currentWindow && currentWindow.parent.location.host === currentWindow.location.host) { 20 return PageObject.getTopWindowOfCurrentHost(currentWindow.parent); 21 } 22 return currentWindow; 23 }, 24 getParentWindowOfCurrentHost(currentWindow) { 25 if (PageObject.isCrossOriginObject(currentWindow.parent)) { 26 return currentWindow; 27 } 28 return currentWindow.parent; 29 } 30 }; 31 32 exports.PageObject = PageObject; 33 34}((this.BX = this.BX || {}))); 35//# sourceMappingURL=pageobject.bundle.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.