mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-02-02 11:48:25 +00:00
Use let instead of const
This commit is contained in:
parent
d26d5b9bbe
commit
2529153ca1
@ -16,7 +16,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
window.addEventListener('contextmenu', event => {
|
||||
event.preventDefault();
|
||||
const 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
|
||||
// for example, <a href="..."><span>Google</span></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user