Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit f7f41d9

Browse files
authored
fix: don't reassign createObjectURL if we don't need to (#222)
1 parent 19ecad3 commit f7f41d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/polyfill.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { URL, URLSearchParams } from 'whatwg-url'
1414
const GLOBAL = global as any
1515
GLOBAL.URL = URL
1616
GLOBAL.URLSearchParams = URLSearchParams
17-
if (createObjectURL) {
17+
if (!window.URL.createObjectURL && createObjectURL) {
1818
window.URL.createObjectURL = createObjectURL
1919
}
2020

0 commit comments

Comments
 (0)