Lightbox returns data on preview mode but not on live.

I use the wixWindow.openLightbox to open a LB and get the return data.

wixWindow.openLightbox( ‘WelcomeFS’ )
.then(data => {console.log( ‘return from LB’ , data)})

This code works fine on preview mode but on Live mode the then() function is not get fired on closing the LB.

I created a new LB and it is working fine.

1 Like