From 109467d1a7c00a904d9baac57fdb03c392ec9a1b Mon Sep 17 00:00:00 2001 From: Renard Date: Fri, 4 Oct 2019 15:41:10 -0300 Subject: Setting: embedYoutube --- src/Post.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Post.js') 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 ( @@ -365,7 +367,7 @@ class Post extends Component { ) : null} - {youtubeVideos !== null + {youtubeVideos !== null && settingEmbedYoutube ? youtubeVideos.map((url, i) => { let id = url.split("?v=")[1]; return ( -- cgit v1.2.1-18-gbd029