浏览代码

web: fix removing closed captions button if transcription is enabled

Nickolay V. Shmyrev 4 年之前
父节点
当前提交
baed605569
共有 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