Skip to content

Commit 7fd1a8a

Browse files
save file
1 parent baed415 commit 7fd1a8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

blog/25-07-24/http-server/http-server.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,8 @@ <h4 class=blog-hdr>
299299
var url = window.URL.createObjectURL(blob);
300300

301301
var a = document.createElement('a');
302-
a.download = 'http-server-simple-example.js';
302+
var fn = ex.snippet.editor.filename.read();
303+
a.download = fn;
303304
a.href = url;
304305
a.click();
305306

0 commit comments

Comments
 (0)