Created
August 13, 2015 20:28
-
-
Save paceaux/b83eb8db4636ac5e3c1d to your computer and use it in GitHub Desktop.
Get the Window that contains Tridion and Anguilla
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TridionWindow = function () { | |
if ($messages) {return window;} else { | |
for (var i = 0; i<frames.length; i++) { | |
if (frames[i].$messages) return frames[i]; | |
} | |
} | |
} | |
tridionWindow = tridionWindow(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment