license /**
 * Vibrates the user's device if supported.
 */ export function vibrate ( pattern = 200 ) { if ( ! ( 'vibrate' in navigator ) ) { return ; } try { navigator . vibrate ( pattern ) ; } catch ( e ) { } }