π»Embed Ellipsis Drive viewer in external applications
Last updated
window.addEventListener('message', function (e) {
// Get the sent data
const data = e.data;
// parse the message as a json;
const decoded = JSON.parse(data);
//check the action type of the message and the data of the message
console.log('action type is ', decoded.action)
//data of the action is
console.log('data of action is', decoded.data)
});