From b37178dda185d98bafa2ccb410631b08fd054467 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 29 Mar 2017 09:21:49 +0100 Subject: [PATCH] Fix download saver for Safari 10.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Safari now finally supports the ‘download’ attribute for the anchor tag, meaning that the download saver works properly. --- core/modules/savers/download.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/modules/savers/download.js b/core/modules/savers/download.js index 1d532a204..0f6e09296 100644 --- a/core/modules/savers/download.js +++ b/core/modules/savers/download.js @@ -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));