Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJukeman committed Aug 2, 2024
1 parent 6a382c2 commit 842a1a9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
14 changes: 11 additions & 3 deletions src/scripts/iconify-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 842a1a9

Please sign in to comment.