fix(desktop): release notes

This commit is contained in:
Mo
2022-07-01 08:19:30 -05:00
parent df87a38b56
commit 44d6bdf147
3 changed files with 8 additions and 3 deletions

View File

@@ -145,8 +145,10 @@ export function setupUpdates(window: BrowserWindow, appState: AppState, backupsM
export function openChangelog(state: UpdateState): void {
const url = 'https://github.com/standardnotes/app/releases'
if (state.latestVersion) {
void shell.openExternal(`${url}/tag/v${state.latestVersion}`)
const latestVersion = state.latestVersion
if (latestVersion) {
const tagPath = `tag/%40standardnotes%2Fdesktop%40${latestVersion}`
void shell.openExternal(`${url}/${tagPath}`)
} else {
void shell.openExternal(url)
}