diff --git a/provider-bridge/index.ts b/provider-bridge/index.ts index 6d148e202c..8997d10714 100644 --- a/provider-bridge/index.ts +++ b/provider-bridge/index.ts @@ -67,6 +67,8 @@ export function connectProviderBridge(): void { } export function injectTallyWindowProvider(): void { + if (document.contentType !== "text/html") return + try { const container = document.head || document.documentElement const scriptTag = document.createElement("script")