From 2529153ca1baa0430b23b4c46f0515c660c0743e Mon Sep 17 00:00:00 2001 From: Goh Jia Hao Date: Sun, 9 Oct 2016 14:16:44 +0800 Subject: [PATCH] Use let instead of const --- app/src/static/preload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/static/preload.js b/app/src/static/preload.js index 9cacbf6..b43c64e 100644 --- a/app/src/static/preload.js +++ b/app/src/static/preload.js @@ -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 bearing the href // for example, Google