Commit c6888ee
Guard against older Optimizely SDK missing getCampaignStates
Older Optimizely SDK versions don't expose state.getCampaignStates.
Without this guard the call throws at runtime and prevents every
context the plugin would attach, not just the Optimizely one.
Return an empty array instead so the tracker keeps working.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 85134eb commit c6888ee
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
0 commit comments