Revert "Download .ico with window.open"

This reverts commit 1b64d520f4.
This commit is contained in:
Florian Gauger
2018-07-03 22:27:38 +02:00
parent 36de2edbb0
commit 242750d7c6
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -54,6 +54,7 @@
</div>
<div id="right">
</div>
<iframe id="download_iframe" style="display:none;"></iframe>
<form id="interactive_download" target="_blank" action="https://realfavicongenerator.net/api/favicon_generator" method="POST" style="display:none;">
<input id="interactive_download_input" type='hidden' name='json_params'></input>"
</form>
+2 -1
View File
@@ -6,6 +6,7 @@ function initDownload() {
const $download = $('#download');
const $fileFormat = $('#file_format');
const $fileFormatText = $('#file_format_text');
const $downloadIframe = $('#download_iframe');
const $interactiveDownload = $('#interactive_download');
const $interactiveDownloadInput = $('#interactive_download_input');
@@ -108,7 +109,7 @@ function initDownload() {
}
function downloadFromUrl(url) {
window.open(url, '_blank');
$downloadIframe.attr('src', url);
}
}