This commit is contained in:
John Firebaugh
2013-04-16 11:51:12 -07:00
parent 7e75ea4bad
commit 913e8982cc
2 changed files with 28 additions and 0 deletions
+14
View File
@@ -194,6 +194,20 @@
<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();
d3.select("#id-container")
+14
View File
@@ -42,6 +42,20 @@
a.src=document.location.protocol+"//dnn506yrbagrg.cloudfront.net/pages/scripts/0013/6714.js?"+Math.floor(new Date().getTime()/3600000);
a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1);
// 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");
}
});
}
if (typeof iD == 'undefined') {
document.getElementById('id-container').innerHTML = 'This editor is supported ' +
'in Firefox, Chrome, Safari, Opera, and Internet Explorer 9 and above. ' +