MCPcopy Create free account
hub / github.com/openscopeproject/InteractiveHtmlBom / saveSettings

Function saveSettings

InteractiveHtmlBom/web/util.js:349–360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347}
348
349function saveSettings() {
350 var data = {
351 type: "InteractiveHtmlBom settings",
352 version: 1,
353 pcbmetadata: pcbdata.metadata,
354 settings: settings,
355 }
356 var blob = new Blob([JSON.stringify(data, null, 4)], {
357 type: "application/json"
358 });
359 saveFile(`${pcbdata.metadata.title}.settings.json`, blob);
360}
361
362function loadSettings() {
363 var input = document.createElement("input");

Callers

nothing calls this directly

Calls 1

saveFileFunction · 0.85

Tested by

no test coverage detected