From: Tom Hughes Date: Thu, 2 Mar 2017 10:20:51 +0000 (+0000) Subject: Fix some jshint warnings X-Git-Tag: live~4133 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/427f5457d9699c319a1957940a50dea887b00f9d Fix some jshint warnings --- diff --git a/app/assets/javascripts/id.js b/app/assets/javascripts/id.js index e1fea1768..687f1e044 100644 --- a/app/assets/javascripts/id.js +++ b/app/assets/javascripts/id.js @@ -1,9 +1,9 @@ //= require iD -document.addEventListener("DOMContentLoaded", function(e) { +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.';