Skip to content

Commit 852fe6f

Browse files
samuelreichertgjulivan
authored andcommitted
fix: append date on search params instead of replace params
1 parent 7d91f12 commit 852fe6f

File tree

1 file changed

+1
-1
lines changed
  • packages/modules/web-actions/src/javascriptsource/webactions/actions

1 file changed

+1
-1
lines changed

packages/modules/web-actions/src/javascriptsource/webactions/actions/SetFavicon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function SetFavicon(iconUrl16x16, iconUrl32x32, appleTouchIconUrl)
4141
const link = document.createElement("link");
4242
link.href = href;
4343
const bypassCacheHref = new URL(link.href);
44-
bypassCacheHref.search = "v" + Date.now();
44+
bypassCacheHref.searchParams.append("v", Date.now());
4545
link.href = bypassCacheHref.toString();
4646
link.rel = "icon";
4747
if (sizes) {

0 commit comments

Comments
 (0)