diff --git a/js/id/modes/browse.js b/js/id/modes/browse.js index 6e467f5d6..2b6178cf0 100644 --- a/js/id/modes/browse.js +++ b/js/id/modes/browse.js @@ -20,7 +20,9 @@ iD.modes.Browse = function(context) { }); // Get focus on the body. - document.activeElement.blur(); + if (document.activeElement) { + document.activeElement.blur(); + } if (sidebar) { context.ui().sidebar.show(sidebar);