fix undefined prompt default value for Chrome