Skip to content

Commit

Permalink
Fix SVGs being downloaded as txt files on Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin-st committed Oct 31, 2019
1 parent d15712a commit 5f4de05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/vue/IconsPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
// Add namespace to <svg tag
const svg = this.cachedSvgs[id].replace('<svg ', '<svg xmlns="http://www.w3.org/2000/svg" ');
const blob = new Blob([svg], {type: "text/plain"});
const blob = new Blob([svg], {type: "image/svg+xml"});
const url = URL.createObjectURL(blob);
chrome.downloads.download({
Expand Down

0 comments on commit 5f4de05

Please sign in to comment.