blob: 15611b4d0e84d7bcdfce420593e56f4e860e1c06 [file] [log] [blame]
/* Copyright 2018 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
'use strict';
/**
* JavaScript for reset_password.html, served from chrome://reset-password/.
*/
(function() {
/** @type {mojom.ResetPasswordHandlerProxy} */
let uiHandler;
function initialize() {
uiHandler = mojom.ResetPasswordHandler.getProxy();
/** @type {?HTMLElement} */
const resetPasswordButton = $('reset-password-button');
resetPasswordButton.addEventListener('click', function() {
uiHandler.handlePasswordReset();
});
}
document.addEventListener('DOMContentLoaded', initialize);
})();