-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6657 from brave/maxk-hide-safety-check-passwords
Settings UI: hides passwords item in Safety Check section.
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
browser/resources/settings/brave_overrides/safety_check_passwords_child.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) 2020 The Brave Authors. All rights reserved. | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
// you can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
import {RegisterPolymerTemplateModifications} from 'chrome://brave-resources/polymer_overriding.js' | ||
|
||
RegisterPolymerTemplateModifications({ | ||
'settings-safety-check-passwords-child': (templateContent) => { | ||
const safetyCheckChild = templateContent.getElementById('safetyCheckChild') | ||
if (!safetyCheckChild) { | ||
console.error('[Brave Settings Overrides] Could not find safetyCheckChild id on safety check passwords child page.') | ||
} else { | ||
safetyCheckChild.setAttribute('hidden', 'true') | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters