MCPcopy Create free account
hub / github.com/arfct/itty-bitty / setFileName

Function setFileName

docs/edit.js:132–138  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

130}
131
132function setFileName(name) {
133 QS("#doc-file").innerText = name;
134 if (name.length) {
135 setContent("");
136 document.body.classList.add("edited");
137 }
138}
139
140function updateBodyClass(hasContent) {
141 if (hasContent || importedFileData) {

Callers 2

handleDropFunction · 0.70
handleContentChangeFunction · 0.70

Calls 2

addMethod · 0.80
setContentFunction · 0.70

Tested by

no test coverage detected