diff --git a/libretranslate/templates/app.js.template b/libretranslate/templates/app.js.template index 6f75305..a48676d 100644 --- a/libretranslate/templates/app.js.template +++ b/libretranslate/templates/app.js.template @@ -402,8 +402,8 @@ document.addEventListener('DOMContentLoaded', function(){ self.translatedFileUrl = res.translatedFileUrl; let link = document.createElement("a"); - link.target = "_blank"; link.href = self.translatedFileUrl; + link.download = ""; link.click(); handleNotification("Translation Complete", "Finished translating " + self.inputFile.name + "."); }else{