Skip to content

Commit

Permalink
Merge pull request #2447 from hyphenized/pdfs-dont-need-wallets-either
Browse files Browse the repository at this point in the history
Don't inject provider on non html documents
  • Loading branch information
Gergő Nagy authored Oct 17, 2022
2 parents 53ec505 + 70647dc commit bcabb8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions provider-bridge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit bcabb8f

Please sign in to comment.