mirror of
https://github.com/devgg/fonticon.git
synced 2026-08-24 10:13:28 -05:00
Revert "Download .ico with window.open"
This reverts commit 1b64d520f4.
This commit is contained in:
@@ -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
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user