From c9754de8c44bdd6f061a3ab1757224c4b8472250 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Tue, 16 Dec 2014 23:13:55 -0500 Subject: [PATCH] Fixing broken download link --- src/js/regexper.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/regexper.js b/src/js/regexper.js index 3a2a492..a6d98ba 100644 --- a/src/js/regexper.js +++ b/src/js/regexper.js @@ -98,14 +98,12 @@ export default class Regexper { } buildBlobURL(content) { - blob = new Blob([content], { type: 'image/svg+xml' }); + var blob = new Blob([content], { type: 'image/svg+xml' }); window.blob = blob; // Blob object has to stick around for IE return URL.createObjectURL(blob); } updateLinks() { - var blob, url; - try { this.download.parentNode.style.display = null; this.download.href = this.buildBlobURL(this.svg.parentNode.innerHTML);