File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,13 @@ let dragContainer = document.querySelector('#drag-container');
23
23
const execute = document . querySelector ( '#execute' ) ;
24
24
25
25
let filePathForSub ;
26
- let dir ;
26
+ let outputPathForSub ;
27
27
28
- execute . addEventListener ( 'click' , e => {
28
+ execute . addEventListener ( 'click' , async e => {
29
29
if ( dragContainer . classList . contains ( 'ready' ) ) {
30
30
console . log ( 'ITS READY' ) ;
31
31
console . log ( `filePathForSub: ${ filePathForSub } ` ) ;
32
+ outputPathForSub = path . dirname ( filePathForSub ) ;
32
33
( async filePathForSub => {
33
34
try {
34
35
const file = await processFile ( filePathForSub ) ;
@@ -47,7 +48,10 @@ execute.addEventListener('click', e => {
47
48
}
48
49
} ) ( filePathForSub ) ;
49
50
}
50
- alert ( `Your file has been created at: ${ filePathForSub } ` ) ;
51
+
52
+ alert (
53
+ `Your updated file has been created here: ${ outputPathForSub } `
54
+ ) ;
51
55
dragContainer . classList . remove ( 'ready' ) ;
52
56
} ) ;
53
57
You can’t perform that action at this time.
0 commit comments