We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d91023 commit 8be989fCopy full SHA for 8be989f
xpi/handlers/linkedin.js
@@ -8,7 +8,8 @@ register({
8
9
identifyUser: function () {
10
var resp = this.httpGet(this.siteUrl);
11
- this.userName = resp.body.querySelector('.username').textContent;
12
- this.userAvatar = resp.body.querySelector('img.member-photo').src;
+ var photoElem = resp.body.querySelector('.member-photo');
+ this.userName = photoElem.alt;
13
+ this.userAvatar = photoElem.src;
14
}
15
});
0 commit comments