Skip to content

Commit

Permalink
[MWPW-159710] Remove parameter on milo:deferred event (#432)
Browse files Browse the repository at this point in the history
* remove parameter on milo:deferred event

* comment

* nit: lint fix

* prevent CLS

* removing the feature of removing parameters

---------

Co-authored-by: Saloni Jain <[email protected]>
  • Loading branch information
seanchoi-dev and salonijain3 authored Oct 24, 2024
1 parent 08c2e06 commit ebbeadb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
body .global-footer {
background: none;
}

.universal-promo-terms img {
min-height: 72px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ const replacePlaceholderText = (text, params) => {
return finalText;
};

/**
* Returns promo term HTML from API
* @param {*} params
* @param {*} el
* @param {*} env
* @param {*} search
* @returns
*/
async function getTermsHTML(params, el, env, search) {
const locationSearch = search ?? window.location.search;
let promoTerms;
Expand Down Expand Up @@ -70,6 +78,4 @@ export default async function init(el, search) {
} else {
el.innerHTML = termsHTML;
}
// eslint-disable-next-line no-restricted-globals
history.replaceState(null, '', location.pathname);
}

0 comments on commit ebbeadb

Please sign in to comment.