MCPcopy Create free account
hub / github.com/DFin/Neural-Network-Visualisation / fetchSnapshotPayload

Function fetchSnapshotPayload

assets/main.js:798–804  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

796}
797
798async function fetchSnapshotPayload(url) {
799 const response = await fetch(url, { cache: "no-store" });
800 if (!response.ok) {
801 throw new Error(`Snapshot konnte nicht geladen werden (${response.status})`);
802 }
803 return response.json();
804}
805
806function decodeSnapshotLayers(payload, layerMetadata) {
807 if (!payload || typeof payload !== "object" || !Array.isArray(payload.layers)) {

Callers 1

loadLayersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected