MCPcopy Index your code
hub / github.com/nwutils/nw-sample-apps / handleNewButton

Function handleNewButton

mini-code-edit/editor.js:87–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85};
86
87function handleNewButton() {
88 if (false) {
89 newFile();
90 editor.setValue("");
91 } else {
92 var x = window.screenX + 10;
93 var y = window.screenY + 10;
94 window.open('main.html', '_blank', 'screenX=' + x + ',screenY=' + y);
95 }
96}
97
98function handleOpenButton() {
99 $("#openFile").trigger("click");

Callers

nothing calls this directly

Calls 1

newFileFunction · 0.85

Tested by

no test coverage detected