Found it in one of the documentation and it worked. I was trying to subscribe to ftrack.widget.update before which didn't work out as expected.
https://help.ftrack.com/en/articles/1040449-custom-widgets
window.addEventListener('message', function (event) {
var content = event.data;
console.debug('Got ' + content.topic + ' event.', content);
if (content.topic === 'ftrack.widget.load') {
//Store credentials for later.
window.credentials = content.data.credentials;
}
Recommended Posts
Posted by Mani Varma,
2 reactions
Go to this post
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now