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
FB SDK is designed to not block you page. So it will not be ready as soon as you think it's ready (componentWillMount). | |
So do it like this if you want to make it your logged in criteria: | |
Create a component that will load the script: | |
class LoggedIn extends Components{ | |
this.state = { isLoggedIn: false, loading: true } | |
componentDidMount(){ |
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
const hasLocalStorage = (function(){ | |
try { | |
localStorage.setItem('mod', 'mod'); | |
localStorage.removeItem('mod'); | |
return true; | |
} catch(e) { | |
return false; | |
} | |
})() |
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
#!/bin/bash | |
usage() { | |
echo "Usage $0 -c mongo_docker_container_name" | |
} | |
while [[ $# > 1 ]] | |
do | |
key="$1" |