%PDF- %PDF-
Direktori : /home/t/r/a/tradesc/www/relax/wp-content/plugins/really-simple-ssl/settings/src/utils/ |
Current File : /home/t/r/a/tradesc/www/relax/wp-content/plugins/really-simple-ssl/settings/src/utils/AddUrlRef.js |
export const addUrlRef = (url) => { const ref = rsssl_settings.ref; if ( parseInt(ref) > 0 ) { const [baseUrl, hash] = url.split('#'); const separator = baseUrl.includes('?') ? '&' : '?'; url = `${baseUrl}${separator}ref=${ref}${hash ? `#${hash}` : ''}`; } return url; }