()
| 347 | } |
| 348 | |
| 349 | function 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 | |
| 362 | function loadSettings() { |
| 363 | var input = document.createElement("input"); |
nothing calls this directly
no test coverage detected