From 2659c41aa6185ea14071016c63b4be1f22d62466 Mon Sep 17 00:00:00 2001 From: Mohammed Buttu Date: Tue, 17 May 2011 14:06:27 -0400 Subject: [PATCH] #332 Changed the code that creates the LinkedIn api script to make use of Popcorn.getScript --- plugins/linkedin/popcorn.linkedin.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/plugins/linkedin/popcorn.linkedin.js b/plugins/linkedin/popcorn.linkedin.js index 1442d92..1ecce9a 100644 --- a/plugins/linkedin/popcorn.linkedin.js +++ b/plugins/linkedin/popcorn.linkedin.js @@ -60,22 +60,7 @@ var apikey = options.apikey, target = document.getElementById( options.target ); - if ( !document.getElementById( "linkedin-root" ) ) { - - var root = document.createElement( "div" ); - - root.setAttribute( "div", "linkedin-root" ); - document.body.appendChild( root ); - - (function() { - - var linkedinAPIScript = document.createElement( "script" ); - linkedinAPIScript.setAttribute( "src", "http://platform.linkedin.com/in.js" ); - linkedinAPIScript.setAttribute( "type", "text/javascript" ); - linkedinAPIScript.setAttribute( "async", "true" ); - root.appendChild( linkedinAPIScript ); - }()); - } + Popcorn.getScript("http://platform.linkedin.com/in.js"); options._container = document.createElement( "script" ); -- 2.43.0