Skip to content

Commit 58e0165

Browse files
save file
1 parent 0200e8c commit 58e0165

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

npm/acorn-browser/scripts/acorn-browser.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,13 @@ <h3>rollup example</h3>
9191

9292

9393
if(1){
94-
console.log('download...');
95-
96-
var a = document.createElement('a');
97-
a.href = url;
98-
a.download = 'acorn.m.js';
94+
console.log('download...');
95+
var a = document.createElement('a');
96+
a.href = url;
97+
a.download = filename;
9998
document.body.append(a);
10099
a.click();
101-
102-
console.log('done');
100+
console.log('done');
103101
return;
104102
}
105103

0 commit comments

Comments
 (0)