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:
parent
d886e5cdb5
commit
4808911b39
2 changed files with 5 additions and 2 deletions
|
@ -100,7 +100,7 @@ class FrankerFaceZ extends Module {
|
||||||
FrankerFaceZ.Logger = Logger;
|
FrankerFaceZ.Logger = Logger;
|
||||||
|
|
||||||
const VER = FrankerFaceZ.version_info = {
|
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__,
|
commit: __git_commit__,
|
||||||
build: __webpack_hash__,
|
build: __webpack_hash__,
|
||||||
toString: () =>
|
toString: () =>
|
||||||
|
|
|
@ -113,7 +113,10 @@ export default class Metadata extends Module {
|
||||||
|
|
||||||
let stats;
|
let stats;
|
||||||
|
|
||||||
if ( typeof player.getPlaybackStats === 'function' ) {
|
if ( ! player )
|
||||||
|
stats = null;
|
||||||
|
|
||||||
|
else if ( typeof player.getPlaybackStats === 'function' ) {
|
||||||
stats = player.getPlaybackStats();
|
stats = player.getPlaybackStats();
|
||||||
|
|
||||||
} else if ( typeof player.getVideoInfo === 'function' ) {
|
} else if ( typeof player.getVideoInfo === 'function' ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue