fix downloading snapshots on firefox
Costa Tsaousis (ktsaou) committed
Nov 13, 2017 at 01:28 UTC
516c9d50eb6cd85532637f98816d950d564b1c38
1 file changed
+11
web/index.html
+11
@@ -759,6 +759,16 @@
759
var link = document.createElement( 'a' );
760
link.setAttribute( 'href', url );
761
link.setAttribute( 'download', filename );
762
+
763
+ var el = document.getElementById('hiddenDownloadLinks');
764
+ el.innerHTML = '';
765
+ el.appendChild(link);
766
+
767
+ setTimeout(function(){
768
+ el.removeChild(link);
769
+ URL.revokeObjectURL(url);
770
+ }, 60);
771
+
772
link.click();
773
}
774
@@ -4806,6 +4816,7 @@
4816
</div>
4817
</div>
4818
</div>
4819
+ <div id="hiddenDownloadLinks" style="display: none;" hidden></div>
4820
<script type="text/javascript" src="dashboard.js?v20171112-21"></script>
4821
</body>
4822
</html>