Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2251)

Unified Diff: chrome/browser/resources/hotword_audio_verification/flow.js

Issue 2921783003: WebUI: Fix/suppress some existing violations of no-restricted-globals. (Closed)
Patch Set: More Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/hotword_audio_verification/flow.js
diff --git a/chrome/browser/resources/hotword_audio_verification/flow.js b/chrome/browser/resources/hotword_audio_verification/flow.js
index 9c0c4b016000bd674cc6e4203b8a2cd741e25817..405e59e12f6fb0dd6e31dc539347a2fe6d21e043 100644
--- a/chrome/browser/resources/hotword_audio_verification/flow.js
+++ b/chrome/browser/resources/hotword_audio_verification/flow.js
@@ -550,7 +550,7 @@
*/
Flow.prototype.showStep_ = function() {
var currentStepId = this.currentFlow_[this.currentStepIndex_];
- var currentStep = document.getElementById(currentStepId);
+ var currentStep = $(currentStepId);
currentStep.hidden = false;
cr.ui.setInitialFocus(currentStep);
@@ -560,7 +560,7 @@
previousStep = this.currentFlow_[this.currentStepIndex_ - 1];
if (previousStep)
- document.getElementById(previousStep).hidden = true;
+ $(previousStep).hidden = true;
chrome.app.window.current().show();
};

Powered by Google App Engine
This is Rietveld 408576698