aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/captions.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/captions.js')
-rw-r--r--src/js/captions.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/js/captions.js b/src/js/captions.js
index 28d5cb91..732b2e38 100644
--- a/src/js/captions.js
+++ b/src/js/captions.js
@@ -15,7 +15,6 @@ import {
insertAfter,
removeElement,
toggleClass,
- toggleState,
} from './utils/elements';
import { on, triggerEvent } from './utils/events';
import fetch from './utils/fetch';
@@ -193,7 +192,7 @@ const captions = {
}
// Toggle state
- toggleState(this.elements.buttons.captions, active);
+ this.elements.buttons.captions.pressed = active;
// Add class hook
toggleClass(this.elements.container, activeClass, active);