Skip to content

Commit

Permalink
Merge pull request #5298 from voxel51/fix/erroneous-base-url
Browse files Browse the repository at this point in the history
remove erroneous base url extraction
  • Loading branch information
sashankaryal authored Dec 19, 2024
2 parents c82bb81 + 75d31dc commit 4bcc45d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/packages/looker/src/worker/disk-overlay-decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,11 @@ export const decodeOverlayOnDisk = async (

// convert absolute file path to a URL that we can "fetch" from
const overlayImageUrl = getSampleSrc(source || label[overlayPathField]);
const urlTokens = overlayImageUrl.split("?");

let baseUrl = overlayImageUrl;

// remove query params if not local URL
if (!urlTokens.at(1)?.startsWith("filepath=") && !source) {
baseUrl = overlayImageUrl.split("?")[0];
}

let overlayImageBlob: Blob;
try {
const overlayImageFetchResponse = await enqueueFetch({
url: baseUrl,
url: overlayImageUrl,
options: { priority: "low" },
});
overlayImageBlob = await overlayImageFetchResponse.blob();
Expand Down

0 comments on commit 4bcc45d

Please sign in to comment.