diff --git a/src/config/polyfill.tsx b/src/config/polyfill.tsx index 18cf1882..ec6d5cb8 100644 --- a/src/config/polyfill.tsx +++ b/src/config/polyfill.tsx @@ -14,7 +14,7 @@ import { URL, URLSearchParams } from 'whatwg-url' const GLOBAL = global as any GLOBAL.URL = URL GLOBAL.URLSearchParams = URLSearchParams -if (createObjectURL) { +if (!window.URL.createObjectURL && createObjectURL) { window.URL.createObjectURL = createObjectURL }