Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/leadin/scripts/utils
File: queryParams.ts
export function addQueryObjectToUrl(
[0] Fix | Delete
urlObject: URL,
[1] Fix | Delete
queryParams: { [key: string]: any }
[2] Fix | Delete
) {
[3] Fix | Delete
Object.keys(queryParams).forEach(key => {
[4] Fix | Delete
urlObject.searchParams.append(key, queryParams[key]);
[5] Fix | Delete
});
[6] Fix | Delete
}
[7] Fix | Delete
[8] Fix | Delete
export function removeQueryParamFromLocation(key: string) {
[9] Fix | Delete
const location = new URL(window.location.href);
[10] Fix | Delete
location.searchParams.delete(key);
[11] Fix | Delete
window.history.replaceState(null, '', location.href);
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function