2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-22 18:18:55 +00:00

Add editorconfig to trim trailing whitespace

This commit is contained in:
Goh Jia Hao 2016-10-09 19:05:43 +08:00
parent c660f2a79a
commit 1286372f95
2 changed files with 3 additions and 1 deletions

View File

@ -23,3 +23,5 @@ indent_size = 2
# Tab indentation (no size specified)
[Makefile]
indent_style = tab
trim_trailing_whitespace = true

View File

@ -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) {