Skip to content

Commit

Permalink
URLSearchParams is fully supported since 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Jun 10, 2024
1 parent 6151ba7 commit 82488d1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions funnel/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,6 @@ $(() => {
// Request for new CSRF token and update the page every 15 mins
setInterval(Utils.csrfRefresh, 900000);

// Add polyfill
if (!('URLSearchParams' in window)) {
const polyfill = document.createElement('script');
polyfill.setAttribute('type', 'text/javascript');
polyfill.setAttribute(
'src',
'https://cdnjs.cloudflare.com/ajax/libs/url-search-params/1.1.0/url-search-params.js',
);
document.head.appendChild(polyfill);
}

setTimezoneCookie();
updateParsleyConfig();
});
Expand Down

0 comments on commit 82488d1

Please sign in to comment.