diff options
author | Renard | 2019-10-04 15:41:10 -0300 |
---|---|---|
committer | Renard | 2019-10-04 15:41:10 -0300 |
commit | 109467d1a7c00a904d9baac57fdb03c392ec9a1b (patch) | |
tree | 964bbad430db6fa8fa88a10895fbe503e9ae0a5d /src/Post.js | |
parent | 27b8ed315b63269794623fa0d5f034928a430c92 (diff) | |
download | bai-client-109467d1a7c00a904d9baac57fdb03c392ec9a1b.tar.gz bai-client-109467d1a7c00a904d9baac57fdb03c392ec9a1b.tar.xz bai-client-109467d1a7c00a904d9baac57fdb03c392ec9a1b.zip |
Setting: embedYoutube
Diffstat (limited to 'src/Post.js')
-rw-r--r-- | src/Post.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Post.js b/src/Post.js index 5a938bf..d18f89c 100644 --- a/src/Post.js +++ b/src/Post.js @@ -271,6 +271,8 @@ class Post extends Component { let settingRenderAvatar = JSON.parse(localStorage.getItem("settings")) .showAvatars; + let settingEmbedYoutube = JSON.parse(localStorage.getItem("settings")) + .embedYoutube; return ( <Comment inverted={nightMode}> @@ -365,7 +367,7 @@ class Post extends Component { </div> ) : null} - {youtubeVideos !== null + {youtubeVideos !== null && settingEmbedYoutube ? youtubeVideos.map((url, i) => { let id = url.split("?v=")[1]; return ( |