diff --git a/app/js/directives.js b/app/js/directives.js index d2422419..bb4fa9d0 100644 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -169,15 +169,12 @@ angular.module('myApp.directives', ['myApp.filters']) .directive('myExternalEmbed', function () { var twitterAttached = false; + var facebookAttached = false; + var gplusAttached = false; var twitterPendingWidgets = []; + var facebookPendingWidgets = []; var embedTag = Config.Modes.chrome_packed ? 'webview' : 'iframe'; - function attachTwitterScript () { - twitterAttached = true; - - $('