send a variable from a js to a iframe with (
frame.contentWindow.postMessage({call:'phone_number', value: "+573156614697"}, 'my twilio url');
)
recieve the varible with
window.addEventListener('message', function(event){
var phone_value= event.data.value;
phoneInput.setNumber(phone_value);
});
Expected behaviour
this should set the set Number method with the variable that i'm sending
Actual behaviour
that just do nothing, and the input don't recieve my variable as input value.
i already check that the variable value (+573156614697) are getting received in my iframe correctly.
Plugin version
v23.0.10
Steps to reproduce
frame.contentWindow.postMessage({call:'phone_number', value: "+573156614697"}, 'my twilio url');
)
recieve the varible with
Expected behaviour
this should set the set Number method with the variable that i'm sending
Actual behaviour
that just do nothing, and the input don't recieve my variable as input value. i already check that the variable value (+573156614697) are getting received in my iframe correctly.
Initialisation options
setNumber Method