starting to add batch code heading
This commit is contained in:
8
docs/CompanyByBatchcodeProvider.js
Normal file
8
docs/CompanyByBatchcodeProvider.js
Normal file
@@ -0,0 +1,8 @@
|
||||
class CompanyByBatchcodeProvider {
|
||||
|
||||
static getCompany(batchcode) {
|
||||
return fetch(`data/histograms/Global/${batchcode}.json`)
|
||||
.then(response => response.json())
|
||||
.then(histoDescrs => histoDescrs.Company);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user