Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
super();
this.vibrator = new Vibrate();
// Has vibrator
this.hasVibrator = 'Has vibrator?: ' + this.vibrator.hasVibrator();
}
getVibrator() {
if (!vibrator) {
vibrator = new Vibrate();
}
return vibrator;
},