Skip to content

Commit 44ed893

Browse files
save file
1 parent 02813bd commit 44ed893

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

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

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,11 @@
8989

9090
async function init(){
9191
debug('init');
92+
await libs.ext();
93+
9294
vm = vm();
9395
vm.initmod({mod});
9496

95-
console.log('ls',ls);
96-
if(typeof ls!='function')debugger;
97-
98-
ls = ls();
99-
100-
10197
menu = menumod();
10298

10399
misc = mod['misc-hdr'];
@@ -149,6 +145,7 @@
149145
}//init
150146

151147

148+
152149
function setup(){
153150

154151
if(ls.read.snapshot_list.error){
@@ -158,6 +155,8 @@
158155
}//setup
159156

160157

158+
159+
/*
161160
(async()=>{
162161
163162
mod.stack.add;
@@ -179,9 +178,20 @@
179178
mod.stack.complete;
180179
181180
})();
181+
*/
182182

183183

184-
184+
libs.ext = async function(){
185+
186+
var promise = ext.load.libs(
187+
'js/string/hs.js',
188+
'js/dom/viewport-manager/v1.0.0/viewport-manager.js.api',
189+
);
190+
[hs,vm] = await promise;
191+
192+
}//ext
193+
194+
185195
libs.jszip = async function(){
186196

187197
if(jszip){

0 commit comments

Comments
 (0)