Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandru Medesan authored and Alexandru Medesan committed May 22, 2023
1 parent a83a427 commit fdeafb0
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,4 @@ const loadEuropaAnalyticsScript = () => {
}
};

const removeEuropaAnalyticsScript = () => {
const existingScript =
__CLIENT__ && document.getElementById(`europaAnalyticsJS`);

//replace script loaded on each route change
if (existingScript) {
existingScript.remove();
}
};

export { loadEuropaAnalyticsScript, removeEuropaAnalyticsScript };
export { loadEuropaAnalyticsScript };

0 comments on commit fdeafb0

Please sign in to comment.