Last active
          October 6, 2025 06:46 
        
      - 
      
- 
        Save philipstanislaus/c7de1f43b52531001412 to your computer and use it in GitHub Desktop. 
Revisions
- 
        philipstanislaus renamed this gist Jul 28, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewingFile renamed without changes.
- 
        philipstanislaus created this gist Feb 26, 2016 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ var saveBlob = (function () { var a = document.createElement("a"); document.body.appendChild(a); a.style = "display: none"; return function (blob, fileName) { var url = window.URL.createObjectURL(blob); a.href = url; a.download = fileName; a.click(); window.URL.revokeObjectURL(url); }; }()); saveBlob(file, 'test.zip');