Skip to content

Commit b1380ee

Browse files
committed
Update help link to be relevant for Windows users
The <if> expression will get evaluated properly by grit Fixes brave/brave-browser#11746
1 parent da2d675 commit b1380ee

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

browser/resources/settings/brave_overrides/about_page.js

+12
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,17 @@ RegisterPolymerTemplateModifications({
1616
}
1717
version.innerHTML = '<a id="release-notes" target="_blank" href="https://brave.com/latest/">' + version.innerHTML + '</a>'
1818
}
19+
20+
// Help link shown if update fails
21+
const updateStatusMessageLink = section.querySelector('#updateStatusMessage a')
22+
if (updateStatusMessageLink) {
23+
// <if expr="is_win">
24+
updateStatusMessageLink.href = 'https://support.brave.com/hc/en-us/articles/360042816611-Why-isn-t-Brave-updating-automatically-on-Windows-'
25+
// </if>
26+
27+
// <if expr="not is_win">
28+
updateStatusMessageLink.href = 'https://community.brave.com?p=update_error'
29+
// </if>
30+
}
1931
}
2032
})

patches/chrome-browser-resources-settings-about_page-about_page.html.patch

-13
This file was deleted.

0 commit comments

Comments
 (0)