Skip to content

Commit 148bbbc

Browse files
save file
1 parent 70f2dc0 commit 148bbbc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

utils/misc/nodejs-terminal/nodejs-terminal.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@
533533
}
534534
console.log(str);
535535
var blob = new Blob([str]);
536-
var file = {name:'snapshot.bin',icon:snap_icon};
536+
var file = {name:'snapshot.json',icon:snap_icon};
537537

538538
complete.load(file,blob);
539539

@@ -921,7 +921,8 @@
921921
dir += '/';
922922
}
923923
if(user_dir===undefined){
924-
user_dir = dir.slice(2,-1);
924+
user_dir = dir.slice(2,-1);
925+
shell.user_dir = user_dir;
925926
console.log('[ user_dir ]',user_dir);
926927
}
927928
if(dir.indexOf('~')!=-1){
@@ -935,6 +936,8 @@
935936
cwd_abs = dir;
936937
cwd = null;
937938
}
939+
shell.cwd_abs = cwd_abs;
940+
shell.cwd = cwd;
938941
console.log('[ cwd_abs ]',cwd_abs);
939942
console.log('[ cwd ]',cwd);
940943
}

0 commit comments

Comments
 (0)