mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 17:52:55 +00:00
Null-check document.activeElement
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user