Commit 1116bb6
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 <[email protected]>1 parent dd315b3 commit 1116bb6
1 file changed
Lines changed: 6 additions & 5 deletions
| 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