MCPcopy Create free account
hub / github.com/microsoft/SandDance / getSnapshotFromHash

Function getSnapshotFromHash

docs/app/js/sanddance-app.js:51358–51365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51356 return viewerOptions;
51357}
51358function getSnapshotFromHash() {
51359 const hash = document.location.hash && document.location.hash.substring(1);
51360 if (hash) try {
51361 return JSON.parse(decodeURIComponent(hash));
51362 } catch (e) {
51363 // continue regardless of error
51364 }
51365}
51366let snapshotOnLoad = getSnapshotFromHash();
51367if (snapshotOnLoad && snapshotOnLoad.dataSource && snapshotOnLoad.dataSource.dataSourceType === "local") snapshotOnLoad = null;
51368class SandDanceApp extends _react.Component {

Callers 2

sanddance-app.jsFile · 0.70
constructorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected