Skip to content

Commit

Permalink
Merge pull request #445 from Hlavtox/fix-token
Browse files Browse the repository at this point in the history
Revert token replacement
  • Loading branch information
Hlavtox authored Jan 31, 2023
2 parents ddbffcb + 92c46e2 commit a8f0491
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/js/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ initEmitter();
$(() => {
const {prestashop, Theme: {events}} = window;

// @TODO: Fix this on core.js side inside a major version of PrestaShop instead of minor
// For reference: https://github.com/PrestaShop/hummingbird/pull/418#discussion_r1061938669
document.querySelectorAll<HTMLInputElement>('[name="token"]').forEach((el) => {
el.value = prestashop.static_token;
});

initProductBehavior();
initQuickview();
initCheckout();
Expand Down

0 comments on commit a8f0491

Please sign in to comment.