From be65d70681b8eca2a482498ab2c2cf114e71074a Mon Sep 17 00:00:00 2001 From: Suraj Vadgama Date: Wed, 21 Nov 2018 12:18:36 +0000 Subject: [PATCH] Prevent multiple new tabs opening --- app/javascript/packs/application.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index 626ce7e1..02e3e680 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.js @@ -65,9 +65,6 @@ document.addEventListener("turbolinks:load", function () { // Utility window.trackOutboundLink = function (url) { window.ga("send", "event", "outbound", "click", url, { - "transport": "beacon", - "hitCallback": function () { - window.open(url); - } + "transport": "beacon" }); };