Skip to content

Commit 7fd649b

Browse files
author
Filipe Batista
committed
replace aditional message vars
1 parent 66bfadf commit 7fd649b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/main/preload.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ contextBridge.exposeInMainWorld('electron', {
5959
log("Inserindo texto")
6060
const finalMessage = message.replaceAll("{primeiroNome}", contact.name.split(" ")[0])
6161
.replaceAll("{nomeCompleto}", contact.name)
62-
.replaceAll("{telefone}", contact.phone);
62+
.replaceAll("{telefone}", contact.phone)
63+
.replaceAll("{var1}", contact.var1)
64+
.replaceAll("{var2}", contact.var2)
65+
.replaceAll("{var3}", contact.var3)
6366

6467
input.click()
6568
input.sendKeys(finalMessage);

0 commit comments

Comments
 (0)