Skip to content

Commit

Permalink
fix: remove duplicated alerting introduced in 0242667
Browse files Browse the repository at this point in the history
  • Loading branch information
YakovL committed May 11, 2023
1 parent ea963ce commit e2183ae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions js/Saving.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,14 @@ function saveMain(localPath, original, posDiv)
try {
var revised = updateOriginal(original, posDiv, localPath);
var save = saveFile(localPath, revised);
if(!save) {
tw.io.onSaveMainFail();
return;
}
} catch (ex) {
tw.io.onSaveMainFail(ex);
}

if(!save) {
tw.io.onSaveMainFail();
return;
}

tw.io.onSaveMainSuccess(config.saveByDownload ? getDataURI(revised) : "file://" + localPath, revised, original);
}

Expand Down

0 comments on commit e2183ae

Please sign in to comment.