-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid window.ipfs in non-HTML context
Injecting proxy into application/xml produced malformed XML and SVG files. This adds some sanity-checks and ensures injection happens only in HTML contexts. It also improves performance by avoiding unnecessary port creation.
- Loading branch information
Showing
1 changed file
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters