File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pipedrive-embeddable-ringcentral-phone-spa" ,
3
- "version" : " 1.3.3 " ,
3
+ "version" : " 1.3.4 " ,
4
4
"description" : " Add RingCentral Embeddable Voice widgets to Pipedrive" ,
5
5
"keywords" : [
6
6
" RingCentral" ,
Original file line number Diff line number Diff line change @@ -59,8 +59,12 @@ export const insertClickToCallButton = [
59
59
// support async
60
60
getContactPhoneNumbers : async ( ) => {
61
61
let phones = document . querySelectorAll ( '.viewContainer:not([style*="none"]) [data-test="phone-label"]' )
62
- return Array . from ( phones ) . map ( p => {
63
- let title = p . parentNode . nextSibling . textContent . trim ( )
62
+ return Array . from ( phones ) . map ( ( p , i ) => {
63
+ let n = p . parentNode . nextSibling || p . nextSibling
64
+ if ( ! n ) {
65
+ return null
66
+ }
67
+ let title = n ? n . textContent . trim ( ) : 'Direct' + i
64
68
let id = title
65
69
let number = p . textContent . trim ( )
66
70
if ( checkPhoneNumber ( number ) ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Ringcentral Embeddable Widgets for Pipedrive" ,
3
- "version" : " 1.3.3 " ,
3
+ "version" : " 1.3.4 " ,
4
4
"description" : " Add RingCentral Embeddable Voice widgets to Pipedrive" ,
5
5
"permissions" : [
6
6
" http://*/" ,
You can’t perform that action at this time.
0 commit comments