From 4c838c01be3fccf3bc327b74da930de9ab9e270b Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Fri, 21 Dec 2018 12:38:09 -0800 Subject: [PATCH] Revert "Add last-resort hook to stop link navigation" This reverts commit c8f6b38df2e125f5cd0b65f4e0340a948bec178c. It caused the menus (like File -> Save) not to work. --- src/renderer/index.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/renderer/index.js b/src/renderer/index.js index bd86f89..9dd9959 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -9,22 +9,6 @@ import styles from './app.css'; const defaultProjectId = 0; -const captureClick = function (ev) { - for (const element of ev.path) { - if (element.href) { - // prevent clicking links - // this is a last-resort test: if we get here that means there's work to do in the GUI - console.warn(`Suppressing click on link to ${element.href}`); - ev.preventDefault(); - ev.stopPropagation(); - return false; - } - } -}; -document.addEventListener('DOMContentLoaded', () => { - document.addEventListener('click', captureClick, true); -}); - // Register "base" page view // analytics.pageview('/');