Skip to content

Commit 85d0a5f

Browse files
ledsunkateinoigakukun
authored andcommitted
encodeURI was not needed
The encodeURI was used to support filenames containing spaces. Realized it was unnecessary.
1 parent 9f473a1 commit 85d0a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/npm-packages/ruby-wasm-wasi/src/browser.script.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const loadScriptAsync = async (tag: Element): Promise<string> => {
4545
// The presence of the src attribute is checked before the presence of the inline.
4646
// see: https://html.spec.whatwg.org/multipage/scripting.html#inline-documentation-for-external-scripts
4747
if (tag.hasAttribute("src")) {
48-
const url = encodeURI(tag.getAttribute("src"));
48+
const url = tag.getAttribute("src");
4949
const response = await fetch(url);
5050

5151
if (response.ok) {

0 commit comments

Comments
 (0)