From b3ac81ebcaaa3220e0c79d7e472815d68c86f14c Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Sat, 8 Jul 2023 11:58:46 +0100 Subject: [PATCH] fix: avoid browser pop-up message --- libretranslate/templates/app.js.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{