Skip to content

Commit 898b11e

Browse files
committed
fix: coderabbit ai suggestions implemented
1 parent d84f7f2 commit 898b11e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/components/Panels/Shared/HelpButton.vue

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,17 @@ async function helpButtonClick() {
2727
if (!link) return
2828
2929
if (await isTauri()) {
30-
new WebviewWindow(`help-${Date.now()}`, {
31-
url: link,
32-
title: 'Help - CircuitVerse',
33-
width: 1000,
34-
height: 700
35-
})
30+
try {
31+
new WebviewWindow(`help-${Date.now()}`, {
32+
url: link,
33+
title: 'Help - CircuitVerse',
34+
width: 1000,
35+
height: 700
36+
})
37+
} catch {
38+
// Fallback to browser if WebviewWindow fails
39+
window.open(link, '_blank')
40+
}
3641
} else {
3742
window.open(link, '_blank')
3843
}

0 commit comments

Comments
 (0)