Skip to content

Commit

Permalink
Adds UI to clear browsing data flow
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Jul 7, 2020
1 parent ad3b5bd commit 2c8f1b6
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@
// you can obtain one at http://mozilla.org/MPL/2.0/.

import {BraveClearBrowsingDataOnExitBehavior} from '../brave_clear_browsing_data_dialog/brave_clear_browsing_data_dialog_behavior.js'
import {RegisterPolymerComponentBehaviors} from 'chrome://brave-resources/polymer_overriding.js'
import {RegisterPolymerComponentBehaviors, RegisterPolymerTemplateModifications} from 'chrome://brave-resources/polymer_overriding.js'

RegisterPolymerComponentBehaviors({
'settings-clear-browsing-data-dialog': [
BraveClearBrowsingDataOnExitBehavior
]
})

RegisterPolymerTemplateModifications({
'settings-clear-browsing-data-dialog': (templateContent) => {
const body = templateContent.querySelector('[slot="body"]')
body.innerHTML = body.innerHTML + '<div>To reset rewards data please click <a href="chrome://rewards/#manage-wallet">here</a>.</div>'
}
})

0 comments on commit 2c8f1b6

Please sign in to comment.