mirror of https://github.com/xwiki-labs/cryptpad
fix undefined reference
This commit is contained in:
parent
c3d1554e8c
commit
6a00d11a15
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue