blob: effb3d9c374960146d0f5bc35f0e0dab04ff896b (
plain)
1
2
3
4
5
6
7
8
|
export const hasQueryParameter = (param) => {
const decodedUri = decodeURIComponent(window.location.search.substring(1));
return !(decodedUri.split('&').indexOf(param) < 0);
};
export default {
hasQueryParameter
};
|