@@ -20,9 +20,12 @@ export default {
},
mounted() {
let iframe = document.getElementById('iframe')
+ console.log('mounted')
iframe.onload = () => {
+ console.log('onload')
let token = Cookies.get('congress')
iframe.contentWindow.postMessage({token: token, id: this.id}, '*')
+ console.log('sent')
}