mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-09-13 16:23:08 +00:00
Merge pull request #552 from DarkWood312/main
feat(landing): автозаполнение поля контакта из параметра URL (?contact=...)
This commit is contained in:
@@ -871,7 +871,8 @@ export default function QuickPurchase() {
|
||||
const contactKey = `lp_contact_${slug ?? ''}`;
|
||||
const [contactValue, setContactValue] = useState(() => {
|
||||
try {
|
||||
return localStorage.getItem(contactKey) || '';
|
||||
const urlContact = new URLSearchParams(window.location.search).get('contact');
|
||||
return urlContact || localStorage.getItem(contactKey) || '';
|
||||
} catch {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user