Skip to content

Commit

Permalink
Refactor worker file paths in date-ranges.js and timeline-axis.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PatchesMaps committed Nov 8, 2024
1 parent 78c7cdc commit fb5a635
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/js/components/layer/info/date-ranges.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function DateRanges ({ layer }) {
const getDateRanges = async () => {
if (dateRanges.length) return;
if (!ongoing) return setDateRanges(formatDateRanges(layer.dateRanges));
const worker = new Worker('js/workers/dd.worker.js');
const worker = new Worker('js/workers/describe-domains.worker.js');
worker.onmessage = (event) => {
if (Array.isArray(event.data)) { // our final format is an array
worker.terminate(); // terminate the worker
Expand Down
2 changes: 1 addition & 1 deletion web/js/components/timeline/timeline-axis/timeline-axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ class TimelineAxis extends Component {
}
// if opted in to DescribeDomains availability, get granule date ranges if needed
if (dataAvailability === 'dd') {
const worker = new Worker('js/workers/dd.worker.js');
const worker = new Worker('js/workers/describe-domains.worker.js');
worker.onmessage = (event) => {
if (Array.isArray(event.data)) { // our final format is an array
worker.terminate(); // terminate the worker
Expand Down
File renamed without changes.

0 comments on commit fb5a635

Please sign in to comment.