mirror of https://github.com/jiahaog/Nativefier
Add editorconfig to trim trailing whitespace
This commit is contained in:
parent
c660f2a79a
commit
1286372f95
|
@ -23,3 +23,5 @@ indent_size = 2
|
||||||
# Tab indentation (no size specified)
|
# Tab indentation (no size specified)
|
||||||
[Makefile]
|
[Makefile]
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
|
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
|
@ -17,7 +17,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
window.addEventListener('contextmenu', event => {
|
window.addEventListener('contextmenu', event => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
let targetElement = event.srcElement;
|
let targetElement = event.srcElement;
|
||||||
|
|
||||||
// the clicked element is the deepest in the DOM, and may not be the <a> bearing the href
|
// 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>
|
// for example, <a href="..."><span>Google</span></a>
|
||||||
while (!targetElement.href && targetElement.parentElement) {
|
while (!targetElement.href && targetElement.parentElement) {
|
||||||
|
|
Loading…
Reference in New Issue