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 9, 2019
1 parent b0e8df3 commit 8ea49ee
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 8ea49ee

Please sign in to comment.