Commit ff7aebd
Fix chart tasks failing with findElementInShadowDOM not defined
When all init scripts are merged into a single string and registered
via add_init_script, function declarations are not accessible from
outside the init script context (e.g. via iframe.evaluate_handle).
Explicitly assigning the function to window ensures it is globally
accessible regardless of how the merged script is scoped.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent eeadb4e commit ff7aebd
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
0 commit comments