1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-05 02:28:31 +00:00

4.0.0-rc9.2

Fixed: Bug with player stats metadata creating an error when the player object is unavailable.
This commit is contained in:
SirStendec 2018-07-27 14:35:11 -04:00
parent d886e5cdb5
commit 4808911b39
2 changed files with 5 additions and 2 deletions

View file

@ -100,7 +100,7 @@ class FrankerFaceZ extends Module {
FrankerFaceZ.Logger = Logger;
const VER = FrankerFaceZ.version_info = {
major: 4, minor: 0, revision: 0, extra: '-rc9.1',
major: 4, minor: 0, revision: 0, extra: '-rc9.2',
commit: __git_commit__,
build: __webpack_hash__,
toString: () =>

View file

@ -113,7 +113,10 @@ export default class Metadata extends Module {
let stats;
if ( typeof player.getPlaybackStats === 'function' ) {
if ( ! player )
stats = null;
else if ( typeof player.getPlaybackStats === 'function' ) {
stats = player.getPlaybackStats();
} else if ( typeof player.getVideoInfo === 'function' ) {