MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / updateFileType

Function updateFileType

js/main.js:1217–1228  ·  view source on GitHub ↗
(fileType)

Source from the content-addressed store, hash-verified

1215 }
1216
1217 const updateFileType = function(fileType) {
1218 fileInfo.fileType = fileType;
1219 updatePreview();
1220
1221 if (fileType == "png") {
1222 document.getElementById("PNG").className = "activated";
1223 document.getElementById("SVG").className = "";
1224 } else if (fileType == "svg") {
1225 document.getElementById("PNG").className = "";
1226 document.getElementById("SVG").className = "activated";
1227 }
1228 }
1229
1230 const resetPadding = function(mode, params) {
1231 const panel = post.panels[currentlySelectedPanelIndex];

Callers

nothing calls this directly

Calls 1

updatePreviewFunction · 0.85

Tested by

no test coverage detected