()
| 23 | |
| 24 | class 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 |
nothing calls this directly
no test coverage detected