mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 15:42:59 +00:00 
			
		
		
		
	Fix download saver on Firefox
Turns out that Firefox needs the link to be in the document before it will honour the click on it.
This commit is contained in:
		| @@ -24,7 +24,9 @@ DownloadSaver.prototype.save = function(text) { | ||||
| 	link.setAttribute("target","_blank"); | ||||
| 	link.setAttribute("href","data:text/html," + encodeURIComponent(text)); | ||||
| 	link.setAttribute("download","tiddlywiki.html"); | ||||
| 	document.body.appendChild(link); | ||||
| 	link.click(); | ||||
| 	document.body.removeChild(link); | ||||
| 	return true; | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jeremy Ruston
					Jeremy Ruston