Skip to content

Conversation

@Halo5082
Copy link

@Halo5082 Halo5082 commented Nov 5, 2025

  • Handle TrustedScript error when injecting browser utils
  • Use Function constructor to bypass Teams Trusted Types restrictions
  • Fallback to Function constructor when addScriptTag fails

@DmitriyG228
Copy link
Contributor

Closing — script injection was refactored into the shared utils/injection.ts (ensureBrowserUtils), so this patch no longer applies. Teams recording now uses that util instead of addScriptTag in recording.ts. If Trusted Types issues reappear on Teams, the Function-constructor fallback can be re-implemented in injection.ts. Thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants