Emergency linkedin hot fix

This commit is contained in:
Michael Schmatz 2014-06-19 08:36:22 -07:00
parent aa4832791e
commit a1b7025730
2 changed files with 15 additions and 5 deletions

View file

@ -37,6 +37,19 @@
<script src="/javascripts/aether.js"></script>
<script src="/javascripts/app.js"></script> <!-- it's all Backbone! -->
<script>
window.linkedInAsyncInit = function() {
console.log("Linkedin Async Init!");
Backbone.Mediator.publish('linkedin-loaded');
};
</script>
<script type="text/javascript" async src="http://platform.linkedin.com/in.js">
api_key: 75v8mv4ictvmx6
onLoad: linkedInAsyncInit
authorize: true
</script>
<script>
window.userObject = "userObjectTag";
</script>

View file

@ -1,12 +1,9 @@
module.exports = initializeLinkedIn = ->
window.linkedInAsyncInit = ->
console.log "Linkedin async init success!"
Backbone.Mediator.publish 'linkedin-loaded'
linkedInSnippet =
'<script type="text/javascript" async src="http://platform.linkedin.com/in.js">
api_key: 75v8mv4ictvmx6
onLoad: linkedInAsyncInit
authorize: true
</script>'
''
$('head').append(linkedInSnippet)