web: fix removing closed captions button if transcription is enabled
This commit is contained in:
parent
edecacd0c0
commit
baed605569
|
@ -121,7 +121,7 @@ if [[ ! -f /config/interface_config.js ]]; then
|
||||||
|
|
||||||
# It will remove parameter 'closedcaptions' from TOOLBAR_BUTTONS if ENABLE_TRANSCRIPTIONS is false,
|
# 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.
|
# 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 \
|
sed -i \
|
||||||
-e "s#'closedcaptions', ##" \
|
-e "s#'closedcaptions', ##" \
|
||||||
/config/interface_config.js
|
/config/interface_config.js
|
||||||
|
|
Loading…
Reference in New Issue