Skip to content

Commit

Permalink
Merge pull request #182 from SpringRoll/bugfix/187407393_captions_per…
Browse files Browse the repository at this point in the history
…sistance

Bugfix/187407393 captions persistance
  • Loading branch information
902seanryan authored Jun 5, 2024
2 parents 51bfaee + 747ec3b commit 640c473
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 40 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.5.2] - unreleased

### Fixed

- Ensured that CaptionsTogglePlugin internal state is maintained when reading from localStorage on startup

## [2.5.1] - 2024-04-16

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion dist/SpringRoll-Container-umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/SpringRoll-Container-umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

56 changes: 25 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"karma-babel-preprocessor": "^8.0.0",
"karma-browserstack-launcher": "^1.5.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-chrome-launcher": "^3.2.0",
"karma-cli": "^2.0.0",
"karma-es6-shim": "^1.0.0",
"karma-firefox-launcher": "^1.1.0",
"karma-firefox-launcher": "^2.1.3",
"karma-html": "^1.0.5",
"karma-mocha": "^2.0.1",
"karma-requirejs": "^1.1.0",
Expand Down
5 changes: 2 additions & 3 deletions src/plugins/CaptionsTogglePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ export class CaptionsTogglePlugin extends ButtonPlugin {
return;
}

const captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);

this._setMuteProp('captionsMuted', this._captionsButtons, captionsMuted, true);
this._captionsMuted = !!SavedData.read(CaptionsTogglePlugin.captionsToggleKey);
this._setMuteProp('captionsMuted', this._captionsButtons, this._captionsMuted, true);

}.bind(this)
);
Expand Down

0 comments on commit 640c473

Please sign in to comment.