소스 검색

web: fix removing closed captions button if transcription is enabled

Nickolay V. Shmyrev 4 년 전
부모
커밋
baed605
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/rootfs/etc/cont-init.d/10-config

+ 1 - 1
web/rootfs/etc/cont-init.d/10-config

@@ -121,7 +121,7 @@ if [[ ! -f /config/interface_config.js ]]; then
 
     # It will remove parameter 'closedcaptions' from TOOLBAR_BUTTONS if ENABLE_TRANSCRIPTIONS is false,
     # because it enabled by default, but not supported out of the box.
-    if [[ $ENABLE_TRANSCRIPTIONS -ne 1 || "$ENABLE_TRANSCRIPTIONS" != "true" ]]; then
+    if [[ $ENABLE_TRANSCRIPTIONS -ne 1 && "$ENABLE_TRANSCRIPTIONS" != "true" ]]; then
         sed -i \
             -e "s#'closedcaptions', ##" \
             /config/interface_config.js