17 lines
467 B
TypeScript
17 lines
467 B
TypeScript
const Placeholder = () => {
|
|
if (window !== undefined) {
|
|
if (document !== undefined) {
|
|
const placeholderCep = document.querySelector(
|
|
".vtex-address-form__postalCode .vtex-input .vtex-input-prefix__group .vtex-address-form-4-x-hideDecorators"
|
|
);
|
|
console.log(placeholderCep);
|
|
} else {
|
|
return console.log("não achei document");
|
|
}
|
|
} else {
|
|
return console.log("não achei windows");
|
|
}
|
|
};
|
|
|
|
export default Placeholder;
|