From 19e21e1d26c044034c1f6740ffd184b9e8b07da2 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 23 Apr 2013 13:45:10 -0700 Subject: [PATCH] Modify window.focus canary I suspect whatever is doing the modification is swallowing exceptions. --- dist/index.html | 6 +++++- index.html | 14 -------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/dist/index.html b/dist/index.html index 20d33e9a4..d15674651 100644 --- a/dist/index.html +++ b/dist/index.html @@ -48,7 +48,11 @@ }, set: function() { - throw new Error("tried to overwrite window.focus"); + try { + throw new Error("tried to overwrite window.focus"); + } catch(e) { + Raven.captureException(e); + } } }); } diff --git a/index.html b/index.html index 47c1fa6c2..17a8967f7 100644 --- a/index.html +++ b/index.html @@ -195,20 +195,6 @@