Skip to content

Commit

Permalink
Link to release notes from brave://settings/help (fixes brave/brave-b…
Browse files Browse the repository at this point in the history
…rowser#6152)

The version number on the about page should be a link to the page
for the latest release notes.
  • Loading branch information
fmarier committed Nov 5, 2019
1 parent 77a3f3e commit 0963172
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion browser/resources/settings/brave_settings_overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,17 @@ BravePatching.RegisterPolymerTemplateModifications({
console.error('[Brave Settings Overrides] Could not find manage payments link')
}
manageLink.remove()
}
},
'settings-about-page': (templateContent) => {
const section = getSectionElement(templateContent, 'about')
if (!section.querySelector('a#release-notes')) {
const version = section.querySelector('#updateStatusMessage ~ .secondary')
if (!version) {
console.error('[Brave Settings Overrides] Could not find version div')
}
version.innerHTML = '<a id="release-notes" target="_blank" href="https://brave.com/latest/">' + version.innerHTML + '</a>'
}
},
})

// Icons
Expand Down

0 comments on commit 0963172

Please sign in to comment.