Skip to content

Instantly share code, notes, and snippets.

@paceaux
Created August 13, 2015 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paceaux/b83eb8db4636ac5e3c1d to your computer and use it in GitHub Desktop.
Save paceaux/b83eb8db4636ac5e3c1d to your computer and use it in GitHub Desktop.
Get the Window that contains Tridion and Anguilla
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