Skip to content

Commit

Permalink
Add editorconfig to trim trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahaog committed Oct 9, 2016
1 parent c660f2a commit 1286372
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ indent_size = 2
# Tab indentation (no size specified)
[Makefile]
indent_style = tab

trim_trailing_whitespace = true
2 changes: 1 addition & 1 deletion app/src/static/preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ document.addEventListener('DOMContentLoaded', () => {
window.addEventListener('contextmenu', event => {
event.preventDefault();
let targetElement = event.srcElement;

// the clicked element is the deepest in the DOM, and may not be the <a> bearing the href
// for example, <a href="..."><span>Google</span></a>
while (!targetElement.href && targetElement.parentElement) {
Expand Down

0 comments on commit 1286372

Please sign in to comment.