Skip to content

Commit

Permalink
Completed issue 9
Browse files Browse the repository at this point in the history
  • Loading branch information
EntityPlantt committed Jul 29, 2022
1 parent f1938ff commit 1ab926e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function saveProject() {
if (!filePath.length) {
saveAsProject();
return;
}
writeFile(filePath, exposedVariables.editorValue(), { encoding: "ascii" }, async (err) => {
}
writeFile(filePath, exposedVariables.editorValue(), { encoding: "utf-8" }, async (err) => {
if (err) {
await saveAsProject();
}
Expand All @@ -36,7 +36,7 @@ async function saveAsProject() {
}
}
function loadProject() {
readFile(filePath, "ascii", (err, data) => {
readFile(filePath, "utf-8", (err, data) => {
if (err) {
window.alert("Error while opening\nMore info in console\n[CTRL + SHIFT + I]");
window.console.error(err);
Expand Down

0 comments on commit 1ab926e

Please sign in to comment.