Skip to content

Commit

Permalink
remove window to Deno 2 (#959)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsbenevides2 authored Nov 19, 2024
1 parent 4bcb115 commit 30cc8c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vtex/hooks/useCart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const itemToAnalyticsItem = (
item_name: item.name ?? item.skuName ?? "",
item_variant: item.skuName,
item_brand: item.additionalInfo.brandName ?? "",
item_url: new URL(item.detailUrl, globalThis.window.location.href).href,
item_url: new URL(item.detailUrl, globalThis.location.href).href,
...(mapItemCategoriesToAnalyticsCategories(item)),
});

Expand Down

0 comments on commit 30cc8c9

Please sign in to comment.