Skip to content

Commit d889208

Browse files
committed
fix: Fix incorrect link for Kubo version in tray icon
1 parent 88b1863 commit d889208

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/tray.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,12 @@ function buildMenu (ctx) {
176176
label: hasCustomBinary()
177177
? i18n.t('customIpfsBinary')
178178
: `kubo ${GO_IPFS_VERSION}`,
179-
click: () => { shell.openExternal(`https://github.com/ipfs/kubo/releases/v${GO_IPFS_VERSION}`) }
179+
click: () => {
180+
shell.openExternal(`https://github.com/ipfs/kubo/releases/v${
181+
GO_IPFS_VERSION.split('^')[1]
182+
? GO_IPFS_VERSION.split('^')[1]
183+
: GO_IPFS_VERSION.split('^')[0]}`)
184+
}
180185
},
181186
{ type: 'separator' },
182187
{

0 commit comments

Comments
 (0)