Skip to content

Commit

Permalink
Merge remote-tracking branch 'Parent/v2' into Current
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 24, 2024
2 parents 84551d3 + 94f03d4 commit 0236af5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api-iife.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist-js/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ async function writeTextFile(path, data, options) {
const encoder = new TextEncoder();
await core.invoke('plugin:fs|write_text_file', encoder.encode(data), {
headers: {
path: path instanceof URL ? path.toString() : path,
path: encodeURIComponent(path instanceof URL ? path.toString() : path),
options: JSON.stringify(options)
}
});
Expand Down
2 changes: 1 addition & 1 deletion dist-js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ async function writeTextFile(path, data, options) {
const encoder = new TextEncoder();
await invoke('plugin:fs|write_text_file', encoder.encode(data), {
headers: {
path: path instanceof URL ? path.toString() : path,
path: encodeURIComponent(path instanceof URL ? path.toString() : path),
options: JSON.stringify(options)
}
});
Expand Down
2 changes: 1 addition & 1 deletion guest-js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ async function writeTextFile(

await invoke('plugin:fs|write_text_file', encoder.encode(data), {
headers: {
path: path instanceof URL ? path.toString() : path,
path: encodeURIComponent(path instanceof URL ? path.toString() : path),
options: JSON.stringify(options)
}
})
Expand Down

0 comments on commit 0236af5

Please sign in to comment.