MCPcopy Create free account
hub / github.com/Lumon-Industries/Macrodata-Refinement / constructor

Method constructor

macrodata.js:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24class MacrodataFile {
25 constructor() {
26 this.localStorageKey = 'macrodata';
27 const file = JSON.parse(localStorage.getItem(this.localStorageKey)) ?? this.assignFile();
28 this.fileName = file.fileName;
29 this.storedBins = file.storedBins;
30 this.coordinates = file.coordinates;
31 }
32
33 assignFile() {
34 // quick fix to ensure you don't get the same filename twice in a row

Callers

nothing calls this directly

Calls 1

assignFileMethod · 0.95

Tested by

no test coverage detected