fix undefined reference

This commit is contained in:
ansuz 2017-05-04 18:28:52 +02:00
parent c3d1554e8c
commit 6a00d11a15
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ define([
$mt.attr('data-type', type);
window.onMediaMetadata = function (metadata) {
if (title !== defaultTitle) { return; }
if (!metadata || metadata.name !== defaultName) { return; }
var title = document.title = metadata.name;
updateTitle(title || defaultName);
};