tawk / tawk-prestashop

42 stars 28 forks source link

Fix select widget button #16

Closed alvinjohnsonso closed 3 years ago

alvinjohnsonso commented 3 years ago

The "Use selected widget" button just greys out after clicking it. This happens only on domains with ports in the URL. (ex. http://localhost:8000). I took a look at the code and found out that the message event listener wasn't receiving any messages from the iframe loaded. Investigated some more using the developer tools and found out that the host URL provided to the iframe doesn't include the port.