func Init() {
	log.Debug("Initializing iframe handler\n")
	js.Global.Call("addEventListener", "message", func(e *js.Object) {
		go func() {
			if err := receiveMessage(e); err != nil {
				log.Printf("Error processing message from iframe: %s\n", err)
			}
		}()
	})
	log.Debug("iframe init complete\n")
}
// Init installs the event listener to receive messages from iframes.
Init installs the event listener to receive messages from iframes.
// Init installs the event listener to receive messages from iframes .
func Init() {
	log.Debug("Initializing iframe handler\n")
	js.Global.Call("addEventListener", "message", func(e *js.Object) {
		go func() {
			if err := receiveMessage(e); err != nil {
				log.Printf("Error processing message from iframe: %s\n", err)
			}
		}()
	})
	log.Debug("iframe init complete\n")
}
func Init ( ) { log . Debug ( " \n " ) js . Global . Call ( " " , " " , func ( e * js . Object ) { go func ( ) { if err := receiveMessage ( e ) ; err != nil { log . Printf ( " \n " , err ) } } ( ) } ) log . Debug ( " \n " ) }
Init installs the event listener to receive messages from iframes.
Init installs the event listener to receive messages from iframes .