X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/293fb9946705417b1d313feb8c65beadaf92a5d3..4afedb07a26f8e9da05697b4e26ff52ef1fe55fb:/app/assets/javascripts/id.js?ds=inline diff --git a/app/assets/javascripts/id.js b/app/assets/javascripts/id.js index e1fea1768..b54532af2 100644 --- a/app/assets/javascripts/id.js +++ b/app/assets/javascripts/id.js @@ -1,9 +1,11 @@ //= require iD -document.addEventListener("DOMContentLoaded", function(e) { +/* globals iD */ + +document.addEventListener("DOMContentLoaded", function() { var container = document.getElementById("id-container"); - if (typeof iD == 'undefined' || !iD.Detect().support) { + if (typeof iD === 'undefined' || !iD.Detect().support) { container.innerHTML = 'This editor is supported ' + 'in Firefox, Chrome, Safari, Opera, Edge, and Internet Explorer 11. ' + 'Please upgrade your browser or use Potlatch 2 to edit the map.';