Skip to content

Commit 8be989f

Browse files
committed
Update LinkedIn handler.
1 parent 7d91023 commit 8be989f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

xpi/handlers/linkedin.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ register({
88

99
identifyUser: function () {
1010
var resp = this.httpGet(this.siteUrl);
11-
this.userName = resp.body.querySelector('.username').textContent;
12-
this.userAvatar = resp.body.querySelector('img.member-photo').src;
11+
var photoElem = resp.body.querySelector('.member-photo');
12+
this.userName = photoElem.alt;
13+
this.userAvatar = photoElem.src;
1314
}
1415
});

0 commit comments

Comments
 (0)