Commit cb9f3fd
authored
fix: remove async IIFE and register listeners before VAST fetch (VAST-84) (#84)
- Remove const self = this pattern that was a workaround for Turbopack (VAST-72)
- Replace async IIFE with .then() to preserve lexical this
- Call addEventsListeners() before handleVAST() to prevent race condition
where readyforpreroll could fire before listeners were attached1 parent fd39d6b commit cb9f3fd
1 file changed
+9
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | 74 | | |
76 | | - | |
| 75 | + | |
77 | 76 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
87 | 84 | | |
88 | | - | |
| 85 | + | |
89 | 86 | | |
90 | 87 | | |
91 | 88 | | |
| |||
0 commit comments