Skip to content

Commit

Permalink
ChromeOS OOBE: fix JS crash in oobe-dialog focus behavior.
Browse files Browse the repository at this point in the history
BUG=707939
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2818633003
Cr-Commit-Position: refs/heads/master@{#464609}
  • Loading branch information
alemate authored and Commit bot committed Apr 13, 2017
1 parent d1ed286 commit b6ca3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/browser/resources/chromeos/login/oobe_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Polymer({
*/
show: function() {
var focusedElements = this.getElementsByClassName('focus-on-show');
if (focusedElements)
if (focusedElements.length > 0)
focusedElements[0].focus();

this.fire('show-dialog');
Expand Down

0 comments on commit b6ca3d6

Please sign in to comment.