Commit 129aa68
fix: add fallback to window.open in EnvelopeFilesList viewer
- Move URL generation outside conditional to avoid duplication
- Add fallback to window.open() when OCA.Viewer is unavailable
- Simplify reference from window.OCA to OCA for consistency
- Ensures PDFs can be opened directly if Viewer app fails
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent 34d4967 commit 129aa68
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
| 366 | + | |
366 | 367 | | |
367 | | - | |
368 | | - | |
369 | | - | |
| 368 | + | |
370 | 369 | | |
371 | 370 | | |
372 | 371 | | |
373 | 372 | | |
374 | | - | |
| 373 | + | |
375 | 374 | | |
376 | 375 | | |
377 | 376 | | |
| 377 | + | |
| 378 | + | |
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
| |||
0 commit comments