mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Remove Raven code (closes #2769)
This commit is contained in:
24
dist/index.html
vendored
24
dist/index.html
vendored
@@ -11,12 +11,6 @@
|
||||
<meta name='apple-mobile-web-app-capable' content='yes' />
|
||||
<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent' />
|
||||
|
||||
<script src='//d3nslu0hdya83q.cloudfront.net/dist/1.0/raven.min.js'></script>
|
||||
|
||||
<script>
|
||||
Raven.config('https://af8ce79129b24fa28d91ede59302369c@app.getsentry.com/6009').install();
|
||||
</script>
|
||||
|
||||
<!--[if !IE]>-->
|
||||
<script src='iD.js'></script>
|
||||
<script src='presets.js'></script>
|
||||
@@ -42,24 +36,6 @@
|
||||
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() {
|
||||
try {
|
||||
throw new Error("tried to overwrite window.focus");
|
||||
} catch(e) {
|
||||
Raven.captureException(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (typeof iD == 'undefined') {
|
||||
document.getElementById('id-container').innerHTML = 'Sorry, Internet Explorer is not currently supported. Please use Potlatch 2 to edit the map.';
|
||||
document.getElementById('id-container').className = 'unsupported';
|
||||
|
||||
Reference in New Issue
Block a user