Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit cf73f76

Browse files
committed
Make sure act is not null
1 parent 0814a6f commit cf73f76

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

runestone/video/js/runestonevideo.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ window.onPlayerStateChange = function (event) {
3838
} else if (event.data == YT.PlayerState.PAUSED) {
3939
console.log("paused at " + videoTime);
4040
data.act = "pause:" + videoTime;
41+
} else {
42+
console.log(`YT Player State: ${YT.PlayerState}`)
43+
data.act = "ready"
4144
}
4245
rb.logBookEvent(data);
4346
};

0 commit comments

Comments
 (0)