We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e13162e commit 90154f9Copy full SHA for 90154f9
app/middlewares/delta/deltaUrlToBlobUrl.js
@@ -16,10 +16,13 @@ const cachedBundleUrls = new Map();
16
export default async function deltaUrlToBlobUrl(deltaUrl) {
17
const client = DeltaPatcher.get(deltaUrl);
18
19
- const deltaBundleId = client.getLastBundleId()
20
- ? `&deltaBundleId=${client.getLastBundleId()}`
+ const lastBundleId = client.getLastBundleId();
+
21
+ const deltaBundleId = lastBundleId
22
+ ? `${lastBundleId.indexOf('?') === -1 ? '?' : '&'}deltaBundleId=${lastBundleId}`
23
: '';
24
25
26
const data = await fetch(deltaUrl + deltaBundleId);
27
const bundle = await data.json();
28
0 commit comments