MCPcopy Index your code
hub / github.com/hokein/electron-sample-apps / handleNewButton

Function handleNewButton

mini-code-editor/editor.js:81–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79};
80
81function handleNewButton() {
82 if (false) {
83 newFile();
84 editor.setValue("");
85 } else {
86 window.open('file://' + __dirname + '/index.html');
87 }
88}
89
90function handleOpenButton() {
91 dialog.showOpenDialog({properties: ['openFile']}, function(filename) {

Callers

nothing calls this directly

Calls 1

newFileFunction · 0.85

Tested by

no test coverage detected