Created
November 19, 2013 16:51
-
-
Save troywarr/7548522 to your computer and use it in GitHub Desktop.
check for FB object before using it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fbCheck = setInterval(function() { | |
if (window.FB) { | |
FB.Canvas.setSize(); | |
clearInterval(fbCheck); | |
} | |
}, 200); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment