mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-12-18 08:27:03 +02:00
fix: avoid browser pop-up message
This commit is contained in:
parent
9032605138
commit
b3ac81ebca
@ -402,8 +402,8 @@ document.addEventListener('DOMContentLoaded', function(){
|
|||||||
self.translatedFileUrl = res.translatedFileUrl;
|
self.translatedFileUrl = res.translatedFileUrl;
|
||||||
|
|
||||||
let link = document.createElement("a");
|
let link = document.createElement("a");
|
||||||
link.target = "_blank";
|
|
||||||
link.href = self.translatedFileUrl;
|
link.href = self.translatedFileUrl;
|
||||||
|
link.download = "";
|
||||||
link.click();
|
link.click();
|
||||||
handleNotification("Translation Complete", "Finished translating " + self.inputFile.name + ".");
|
handleNotification("Translation Complete", "Finished translating " + self.inputFile.name + ".");
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
Reference in New Issue
Block a user