func (dom *DOM) AlertOnPanic() {
	if r := recover(); r != nil {
		err := dom.recoverError(r)
		f := []string{
			"FATAL: site shutting down",
			"See browser console for more information",
			"Message: " + err.Error(),
		}
		message := strings.Join(f, "\n")
		dom.alert(message)
		panic(err)
	}
}
// AlertOnPanic checks to see if a panic has occurred.
// This function should be deferred as the first statement for each goroutine.
AlertOnPanic checks to see if a panic has occurred.
This function should be deferred as the first statement for each goroutine.
// AlertOnPanic checks to see if a panic has occurred . // This function should be deferred as the first statement for each goroutine .
func (dom *DOM) AlertOnPanic() {
	if r := recover(); r != nil {
		err := dom.recoverError(r)
		f := []string{
			"FATAL: site shutting down",
			"See browser console for more information",
			"Message: " + err.Error(),
		}
		message := strings.Join(f, "\n")
		dom.alert(message)
		panic(err)
	}
}
func ( dom * DOM ) AlertOnPanic ( ) { if r := recover ( ) ; r != nil { err := dom . recoverError ( r ) f := [ ] string { " " , " " , " " + err . Error ( ) , } message := strings . Join ( f , " \n " ) dom . alert ( message ) panic ( err ) } }
AlertOnPanic checks to see if a panic has occurred.
AlertOnPanic checks to see if a panic has occurred .