diff --git a/CHANGELOG.md b/CHANGELOG.md index 5868838..25ec7ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,14 @@ - Full Changelog can be found on the Website [here](https://kyutefox.com/changelog/iconify-browser-extension). -### August 30, 2024 - 1.0.2 (Update) +### August 07, 2024 - 1.0.6 (Update) + +> - Update: + + - Fixed 0 Byte in IconScout + + +### August 30, 2023 - 1.0.2 (Update) > - New: @@ -14,7 +21,7 @@ - Generate Premium Font Awesome CDN and use icon directly -### August 09, 2024, 1.0.1 (Update & Fixes) +### August 09, 2023, 1.0.1 (Update & Fixes) > - New: diff --git a/src/manifest.json b/src/manifest.json index 857ee2d..6c9e7fd 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,6 +1,6 @@ { "name" : "Iconify", - "version" : "1.0.5", + "version" : "1.0.6", "description" : "Upgrade your designs with our browser extension! Download premium SVG icons and stickers.", "manifest_version": 3, "icons": { diff --git a/src/scripts/iconify-main.js b/src/scripts/iconify-main.js index d85088d..bb08424 100644 --- a/src/scripts/iconify-main.js +++ b/src/scripts/iconify-main.js @@ -58,10 +58,18 @@ const initFontAwesome = () => { } // Create download -const downloadIcon = function (text = "", downloadAbleName = "", extension = "svg") +const downloadIcon = function (text = "", downloadAbleName = "", extension = "svg",drc = false) { let newAnchorElement = document.createElement("a"); - newAnchorElement.setAttribute("href", "data:text/plain;charset=utf-8," + encodeURIComponent(text)); + if(drc === true) + { + newAnchorElement.setAttribute("href", text); + + }else + { + newAnchorElement.setAttribute("href", "data:text/plain;charset=utf-8," + encodeURIComponent(text)); + + } newAnchorElement.setAttribute("download", (downloadAbleName + `.${extension}`) ?? "iconify.svg"); newAnchorElement.style.display = "none"; document.body.appendChild(newAnchorElement); @@ -323,7 +331,7 @@ $(document).on("click", ".download-icon, .copyToClipboardIScout", function(e){ let pdpLottieEditor = $(document).find("#pdp-lottie-player-" + product_id); if(propColorEditor.length > 0) { - downloadIcon(propColorEditor.html(), product_id); + downloadIcon(propColorEditor.attr("src"), product_id,"svg",true); clickedButtonElement.html("Download"); } else if(pdpLottieEditor.length > 0)