Merge lp:~hbrunn/ocb-addons/lp1135873_7.0 into lp:ocb-addons

Proposed by Holger Brunn (Therp)
Status: Merged
Merged at revision: 8819
Proposed branch: lp:~hbrunn/ocb-addons/lp1135873_7.0
Merge into: lp:ocb-addons
Diff against target: 12 lines (+1/-1)
1 file modified
web_linkedin/static/src/js/linkedin.js (+1/-1)
To merge this branch: bzr merge lp:~hbrunn/ocb-addons/lp1135873_7.0
Reviewer Review Type Date Requested Status
Stefan Rijnhart (Opener) Approve
Review via email: mp+151041@code.launchpad.net

Commit message

[FIX] pull linkedin-api from the protocol we're on

To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Looks good, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'web_linkedin/static/src/js/linkedin.js'
2--- web_linkedin/static/src/js/linkedin.js 2012-11-15 15:09:45 +0000
3+++ web_linkedin/static/src/js/linkedin.js 2013-02-28 16:11:32 +0000
4@@ -19,7 +19,7 @@
5 return self.linkedin_def.promise();
6 var tag = document.createElement('script');
7 tag.type = 'text/javascript';
8- tag.src = "http://platform.linkedin.com/in.js";
9+ tag.src = document.location.protocol + "//platform.linkedin.com/in.js";
10 tag.innerHTML = 'api_key : ' + self.api_key + '\nauthorize : true\nscope: r_network r_contactinfo';
11 document.getElementsByTagName('head')[0].appendChild(tag);
12 self.linkedin_added = true;