Skip to content

Commit 11e811d

Browse files
committed
revert pushed change outside of a PR
1 parent 01ccbac commit 11e811d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/qwik/src/server/prefetch-utils.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ export function prefetchUrlsEventScript(base: string, prefetchResources: Prefetc
2424
bundles: flattenPrefetchResources(prefetchResources).map((u) => u.split('/').pop()!),
2525
};
2626
const args = JSON.stringify(['prefetch', base, ...data.bundles!]);
27-
28-
return `document.dispatchEvent(new CustomEvent("qprefetch",{detail:${JSON.stringify(data)}}));
29-
(window.qwikPrefetchSW||(window.qwikPrefetchSW=[])).push(${args});`;
27+
return `(window.qwikPrefetchSW||(window.qwikPrefetchSW=[])).push(${args});`;
3028
}
3129

3230
export function flattenPrefetchResources(prefetchResources: PrefetchResource[]) {

0 commit comments

Comments
 (0)