Skip to content

Commit 23aab08

Browse files
authored
Update script.js
Fix Russian local country code
1 parent af2a65f commit 23aab08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/whatsapp_direct/scripts/script.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ var app = new Vue({
1313
if (numbers.charAt(0) == "0")
1414
numbers = numbers.replace("0", "66")
1515

16+
if (numbers.charAt(0) == "8" && numbers.length === 11)
17+
numbers = numbers.replace("8", "7")
18+
1619
return numbers
1720
},
1821
active_message: {
@@ -58,4 +61,4 @@ var app = new Vue({
5861
localStorage.setItem('active_tab', n)
5962
}
6063
}
61-
})
64+
})

0 commit comments

Comments
 (0)