Commit b9daeaf
fix: optimize viewFile method in EnvelopeValidation
- Move URL generation outside conditional to avoid code duplication
- Ensures URL is generated once and reused for both viewer and fallback
- Maintains fallback to window.open() when OCA.Viewer is unavailable
Signed-off-by: Vitor Mattos <[email protected]>1 parent 129aa68 commit b9daeaf
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
250 | 251 | | |
251 | | - | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | 263 | | |
265 | 264 | | |
266 | 265 | | |
| |||
0 commit comments