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.