File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed
src/components/Panels/Shared Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,30 @@ const props = defineProps({
2222
2323const helplink = computed (() => props .obj ?.helplink )
2424
25+ async function helpButtonClick() {
26+ const link = helplink .value
27+ if (! link ) return
28+
2529async function helpButtonClick() {
2630 const link = helplink .value
2731 if (! link ) return
2832
2933 if (await isTauri ()) {
30- new WebviewWindow (` help-${Date .now ()} ` , {
31- url: link ,
32- title: ' Help - CircuitVerse' ,
33- width: 1000 ,
34- height: 700
35- })
34+ try {
35+ new WebviewWindow (` help-${Date .now ()} ` , {
36+ url: link ,
37+ title: ' Help - CircuitVerse' ,
38+ width: 1000 ,
39+ height: 700
40+ })
41+ } catch {
42+ // Fallback to browser if WebviewWindow fails
43+ window .open (link , ' _blank' )
44+ }
45+ } else {
46+ window .open (link , ' _blank' )
47+ }
48+ }
3649 } else {
3750 window .open (link , ' _blank' )
3851 }
You can’t perform that action at this time.
0 commit comments