mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-07 09:42:52 -08:00
Fix download saver for Safari 10.1
Safari now finally supports the ‘download’ attribute for the anchor tag, meaning that the download saver works properly.
This commit is contained in:
parent
1e106a8f3d
commit
b37178dda1
1 changed files with 0 additions and 2 deletions
|
|
@ -33,8 +33,6 @@ DownloadSaver.prototype.save = function(text,method,callback,options) {
|
|||
}
|
||||
// Set up the link
|
||||
var link = document.createElement("a");
|
||||
link.setAttribute("target","_blank");
|
||||
link.setAttribute("rel","noopener noreferrer");
|
||||
if(Blob !== undefined) {
|
||||
var blob = new Blob([text], {type: "text/html"});
|
||||
link.setAttribute("href", URL.createObjectURL(blob));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue