Fix colorPicker's lints (#4109) [ci skip]

This commit is contained in:
Laura Chan 2019-09-27 14:43:51 +01:00 committed by Mac Siri
parent aa9f03740e
commit 427a8dd45e
2 changed files with 53 additions and 43 deletions

File diff suppressed because one or more lines are too long

View file

@ -84,8 +84,8 @@ function loadFunctionality() {
subscriptionButtons[i].addEventListener('click', e => {
e.preventDefault();
updateStatus(e.target);
if (typeof sendHapticMessage !== 'undefined') {
sendHapticMessage('medium');
if (typeof window.sendHapticMessage !== 'undefined') {
window.sendHapticMessage('medium');
}
});
subscriptionButtons[i].addEventListener('keydown', e => {