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:
parent
c660f2a79a
commit
1286372f95
@ -23,3 +23,5 @@ indent_size = 2
|
||||
# Tab indentation (no size specified)
|
||||
[Makefile]
|
||||
indent_style = tab
|
||||
|
||||
trim_trailing_whitespace = true
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user