Skip to content

Commit ff83d4e

Browse files
save file
1 parent f3ee81a commit ff83d4e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

utils/misc/nodejs-terminal/html/snippet-nodejs/v1.0/snippet-nodejs-v1.0.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@
9696

9797
var viewport;
9898
var editor;
99+
obj.editor = null;
99100
var term;
101+
obj.term = null;
100102

101103
var process;
102104

@@ -115,13 +117,15 @@
115117

116118
obj.init = async function(){
117119
debug('init');
118-
editor = mod['web-editor'];
120+
editor = mod['web-editor'];
121+
obj.editor = editor;
119122
editor.initmod({kd});
120123

121124
mod.base.add({ace});
122125
await mod.auto();
123126

124-
term = mod['web-terminal'];
127+
term = mod['web-terminal'];
128+
obj.term = term;
125129

126130

127131
await initdom();

0 commit comments

Comments
 (0)