Commit 3092622
committed
Fix TypeError for non-http links in html-link-activate
- Fixed 'globalThis.application is not a function' error
- Fixed logic to properly detect http/https links (case-insensitive check)
- http/https links now open directly without warning dialog
- Non-http/https links (mailto, etc) show warning dialog before opening
- Fixed dialog parenting using global-widgets state with GTK fallback
- Alert dialog now properly attached to parent window (no independent movement)1 parent 6b20c56 commit 3092622
1 file changed
Lines changed: 10 additions & 5 deletions
File tree
- src/main/lobjur/widgets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | | - | |
| 92 | + | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
94 | | - | |
95 | | - | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
0 commit comments