Skip to content

Commit baed605

Browse files
authored
web: fix removing closed captions button if transcription is enabled
1 parent edecacd commit baed605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ if [[ ! -f /config/interface_config.js ]]; then
121121

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

0 commit comments

Comments
 (0)