diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/components/lists/listHeader.js | 6 | ||||
-rw-r--r-- | client/lib/accessibility.js | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js index 7db93618..e34d23fd 100644 --- a/client/components/lists/listHeader.js +++ b/client/components/lists/listHeader.js @@ -62,14 +62,12 @@ BlazeComponent.extendComponent({ try { trelloCard = JSON.parse(jsonData); } catch (e) { - console.log(e); this.setError('error-json-malformed'); return; } Meteor.call('importTrelloCard', trelloCard, this.currentData()._id, sortIndex, (error, response) => { if (error) { - console.log(error); this.setError(error.error); } else { Filter.addException(response); @@ -77,8 +75,8 @@ BlazeComponent.extendComponent({ } } ); - } - },]; + }, + }]; }, onCreated() { diff --git a/client/lib/accessibility.js b/client/lib/accessibility.js index 64195b81..52b771d4 100644 --- a/client/lib/accessibility.js +++ b/client/lib/accessibility.js @@ -7,7 +7,7 @@ // Without an href, links are non-keyboard-focusable and are not presented on // blind screen readers. We default to the empty anchor `#` href. function enforceHref(attributes) { - if (! _.has(attributes, 'href')) { + if (!_.has(attributes, 'href')) { attributes.href = '#'; } return attributes; @@ -17,7 +17,7 @@ function enforceHref(attributes) { // presented by screen readers. `aria-label`, on the other hand, is specific to // accessibility and is presented in ways that title shouldn't be. function copyTitleInAriaLabel(attributes) { - if (! _.has(attributes, 'aria-label') && _.has(attributes, 'title')) { + if (!_.has(attributes, 'aria-label') && _.has(attributes, 'title')) { attributes['aria-label'] = attributes.title; } return attributes; @@ -34,8 +34,8 @@ const { HTML.A = (attributes, ...others) => { return superA(copyTitleInAriaLabel(enforceHref(attributes)), ...others); -} +}; HTML.I = (attributes, ...others) => { return superI(copyTitleInAriaLabel(attributes), ...others); -} +}; |