@24i/bigscreen-sdk 1.0.24 → 1.0.25-alpha.2426

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/bigscreen-sdk",
3
- "version": "1.0.24",
3
+ "version": "1.0.25-alpha.2426",
4
4
  "description": "SmartApps BIGscreen SDK monorepo",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,15 +28,19 @@ export class PlayPauseButton extends Component<Props> {
28
28
  }
29
29
 
30
30
  onPlaying = () => {
31
- runAsync(() => { // Needs to be async to allow pause button to be displayed first
32
- if (isFocused(this.playButton)) this.pauseButton.current!.focus();
33
- });
31
+ if (isFocused(this.playButton)) {
32
+ runAsync(() => { // Needs to be async to allow pause button to be displayed first
33
+ this.pauseButton.current!.focus();
34
+ });
35
+ }
34
36
  };
35
37
 
36
38
  onPause = () => {
37
- runAsync(() => { // Needs to be async to allow play button to be displayed first
38
- if (isFocused(this.pauseButton)) this.playButton.current!.focus();
39
- });
39
+ if (isFocused(this.pauseButton)) {
40
+ runAsync(() => { // Needs to be async to allow play button to be displayed first
41
+ this.playButton.current!.focus();
42
+ });
43
+ }
40
44
  };
41
45
 
42
46
  focus(options?: FocusOptions) {