mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Modify window.focus canary
I suspect whatever is doing the modification is swallowing exceptions.
This commit is contained in:
Vendored
+5
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
-14
@@ -195,20 +195,6 @@
|
||||
<body>
|
||||
<div id='id-container'></div>
|
||||
<script>
|
||||
// Adding a canary for https://app.getsentry.com/id/id/group/5138888/
|
||||
if (Object.defineProperty) {
|
||||
var windowFocus = window.focus;
|
||||
Object.defineProperty(window, 'focus', {
|
||||
get: function() {
|
||||
return windowFocus;
|
||||
},
|
||||
|
||||
set: function() {
|
||||
throw new Error("tried to overwrite window.focus");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
iD.data.load(function() {
|
||||
id = iD().assetPath('dist/');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user