We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26ada78 commit cc3bc97Copy full SHA for cc3bc97
src/loadScript.js
@@ -13,7 +13,7 @@ const loadScript = ({ src, ...props }: Props): Promise<void> =>
13
return
14
}
15
if (typeof document.querySelector === 'function') {
16
- if (document.querySelector(`script[src="${encodeURIComponent(src)}"]`)) {
+ if (document.querySelector(`script[src="${src}"]`)) {
17
resolve()
18
19
0 commit comments