Skip to content

Commit bdd2581

Browse files
author
Kevin Nadro
committed
auto presses the trace tab
- auto presses the trace tab for the user will be able to see the tracers once created for they don’t have to figure out on their own its under the tracer tab.
1 parent 94ea13c commit bdd2581

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

js/create/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ const init = () => {
8585
array2d.setup();
8686
array1d.setup();
8787
closeCreate();
88+
util.clickTraceTab();
8889
}
8990
};
9091

js/create/util.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,16 @@ const enabledHightlighting = () =>{
3939
}
4040
}
4141

42+
const clickTraceTab = () => {
43+
var btn = document.getElementById('btn_trace');
44+
if(btn){
45+
btn.click();
46+
}
47+
}
48+
4249
module.exports = {
4350
enabledHightlighting,
4451
positionModules,
45-
clearModules
52+
clearModules,
53+
clickTraceTab
4654
};

0 commit comments

Comments
 (0)